5 ms·
Yes! I talk a bit about prior art in this section of a recent talk: https://youtu.be/AdNJ3fydeao?t=504 https://youtu.be/AdNJ3fydeao?t=504. (Michel Weststrate, t
by rich_harris 7y ago
Yes! I talk a bit about prior art in this section of a recent talk: https://youtu.be/AdNJ3fydeao?t=504 https://youtu.be/AdNJ3fydeao?t=504. (Michel Weststrate, the MobX creator, was in the audience!) The difference in how you end up writing your code when you don't have a `this` turns out to be quite profound, and is the main reason that Svelte components are so concise: https://svelte.dev/blog/write-less-code https://svelte.dev/blog/write-less-code
It's also worth noting that this approach means there's none of the overhead involved in creating proxies.
- pier25 7y agoAnd also, since you don't need Proxies, you can target not so old browsers. We're working on a project with MobX 5 and mid project we realized some of our users on iOS 9 or KitKat do not have Proxy.
- inglor 7y agoI was actually physically close to YGLF but unable to attend, I spoke there at a previous year. Michel is a friend and I collaborated with him on MobX. He's also one of the nicest people I know and he visits often. I think you might want to check out WPF + PostSharp for something very similar to this approach in C# land. I definitely think it's the right approach for reactivity.
- rich_harris 7y agoEchoing your comment about Michel — he's a prince among men! Was great to meet him at YGLF
- inglor 7y agoAlso, thanks for rollup, I've used it today and it was a lot of fun to work with. I was up and running (after experience with webpack) very quickly and everything I needed was well maintained and I was pleasantly surprised! The main blocker for me adopting Svetle (and opting for Vue and React) is tooling to be honest. I want code that has a lot of visibility, meaningful stack traces and the debugger stopping in relevant places. If Svetle 3 does everything synchronously (like MobX) I'd love to check it out!
- rich_harris 7y agoUpdates are asynchronous (they happen at the end of the event loop, so that `x = 1; y = 2;` results in one update instead of two), but I hear you on tooling. Svelte isn't yet as mature as other frameworks on that front (though debugging isn't bad in my experience). One day soon, hopefully!