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:

Nx Adoption Guide: Overview, Examples, And Alternatives

Nx adoption guide: Overview, examples, and alternatives

Let’s explore Nx features, use cases, alternatives, and more to help you assess whether it’s the right tool for your needs.

Andrew Evans
Mar 28, 2024 ⋅ 9 min read
Understanding Security In React Native Applications

Understanding security in React Native applications

Explore the various security threats facing React Native mobile applications and how to mitigate them.

Wisdom Ekpotu
Mar 27, 2024 ⋅ 10 min read
Warp Adoption Guide: Overview, Examples, And Alternatives

warp adoption guide: Overview, examples, and alternatives

The warp web framework for Rust offers many enticing features. Let’s see when and why you should consider using warp in your projects.

Ukeje Goodness
Mar 26, 2024 ⋅ 8 min read
Integrating Next Js And Signalr For Enhanced Real Time Web App Capabilities

Integrating Next.js and SignalR to build real-time web apps

In this tutorial, you’ll learn how to integrate Next.js and SignalR to build an enhanced real-time web application.

Clara Ekekenta
Mar 25, 2024 ⋅ 8 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