Saturday, December 30, 2023

Re: Building a Reactive Library from Scratch in Vim 9 Script

Lifepillar said on Fri, 29 Dec 2023 17:58:32 -0000 (UTC)

>Today I was entertaining myself with articles about the "reactive
>programming" paradigm so popular nowadays, such as this:
>
> https://dev.to/ryansolid/building-a-reactive-library-from-scratch-1i0p
>
>As I could not understand that code, I decided to port it to a sane
>language:
>
> https://gist.github.com/lifepillar/d44e6ca33f0b1f66a0b403e133413699
>
>The task was pretty straightforward, I must say. The code still leaves
>much to be desired (among the rest because I've tried to deviate from
>the original as little as possible), but it works well.
>
>Enjoy!
>Life.

Thanks Life!

I had a chuckle when you called Vimscript a "sane language". I'm more
of a Lua or Python or C guy myself. But looking at your code, it looks
like the Vim9 script language is a big improvement over that old viml
stuff.

Anyway, could you please summarize what you see as the benefits of
reactive programming? As a guy who has used a lot of callback routines
(C, Perl and Python) in his life, I kinda sorta maybe understand at a
gut level, but I don't really fully understand the benefits in a way I
could explain or use them.

Thanks again for this ultra-cool post!

SteveT

Steve Litt

Autumn 2023 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20231230164120.23d0c5c0%40mydesk.domain.cxm.

No comments: