2019-05-21
2387
#react#svelte
Ovie Okeh
2089
May 21, 2019 ⋅ 8 min read

Truly reactive programming with Svelte 3.0

Ovie Okeh Programming enthusiast, lover of all things that go beep.

Recent posts:

Rxjs Adoption Guide: Overview, Examples, And Alternatives

RxJS adoption guide: Overview, examples, and alternatives

Get to know RxJS features, benefits, and more to help you understand what it is, how it works, and why you should use it.

Emmanuel Odioko
Jul 26, 2024 ⋅ 13 min read
Decoupling Monoliths Into Microservices With Feature Flags

Decoupling monoliths into microservices with feature flags

Explore how to effectively break down a monolithic application into microservices using feature flags and Flagsmith.

Kayode Adeniyi
Jul 25, 2024 ⋅ 10 min read
Lots of multi-colored blue and purplish rectangles.

Animating dialog and popover elements with CSS @starting-style

Native dialog and popover elements have their own well-defined roles in modern-day frontend web development. Dialog elements are known to […]

Rahul Chhodde
Jul 24, 2024 ⋅ 10 min read
Using Llama Index To Add Personal Data To Large Language Models

Using LlamaIndex to add personal data to LLMs

LlamaIndex provides tools for ingesting, processing, and implementing complex query workflows that combine data access with LLM prompting.

Ukeje Goodness
Jul 23, 2024 ⋅ 5 min read
View all posts

5 Replies to "Truly reactive programming with Svelte 3.0"

  1. Mistake in this line of the vanilla.js code?
    bar = foo + 10 // now bar becomes 25
    But thanks for an excellent article, especially with regard to summarising React’s shortcomings. Looking forward to seeing what Svelte can do over the next few years

  2. Thank you! Nice Article. Understood the point about using topology much better. Good addition to the presentation of Rich Harris. You state the following:

    “Wait, what? A compiler? Yes — a compiler. It’s such a bloody good idea that I don’t know why it wasn’t so obvious until now, and I’ll tell you why I think it’s so cool.”

    Exactly what I was thinking reading about Svelte. Relative new to the javascript world and surprised by the number of frameworks, tools etc. Very very complex, certainly for an old man having a C background. Of course, I love compilers! I love small footprints and software with good performance.

    Have fun with the computer and javascript.

  3. Thank you!
    But like the first commentor said, there is something wrong with your example and that point is the one that shows how Svelte is reactive:

    let foo = 10;
    $: bar = foo + 10; // bar is now 20
    console.log(bar); // 20 <==
    foo = 15;
    console.log(bar); // 20 <== bar is STILL 20

    Because this doesn't work, it's hard to see how they achieve reactiveness.

    Thanks

Leave a Reply