2 ms·
TLDR; check out AppRun Somehow Svelte doesn't sit well with me. Anti virtual dom advocacy turns me away. The way they sell Svelte is thoroughly antagonistic.
by scotty79 6y ago
TLDR; check out AppRun
Somehow Svelte doesn't sit well with me. Anti virtual dom advocacy turns me away. The way they sell Svelte is thoroughly antagonistic.
I tried to read the documentation but I'm suspicious about HTML that is not HTML, and JavaScript that is not JavaScript and CSS that's not CSS. "It's reactive." doesn't instill any confidence in me that state manegent won't end up in tangled mess in my app.
I was checking out benchmarks to see if Svelte is actually as fast as they claim and it is faster but not faster then some of their more low key competition.
https://www.freecodecamp.org/news/a-realworld-comparison-of-front-end-frameworks-with-benchmarks-2019-update-4be0d3c78075/ https://www.freecodecamp.org/news/a-realworld-comparison-of-...
While checking out benchmarks I noticed some framework called AppRun.
I started looking at their docs. Reading through that was a breeze. Very simple model of operation, state => view. Everything (also state modifications) goes through events. You can use it as SPA or just enhace your existing webpage with few AppRun components. You can use JSX if you like it or not. Languages don't have any custom extensions. It's just JS, CSS, HTML (JSX) (with single exception of optional custom directives).
You can use TypeScript, inspect state with Redux dev tools. And everything is faster and requires less code than Svelte.
https://apprun.js.org/docs/#/ https://apprun.js.org/docs/#/
https://medium.com/@yiyisun/i-also-created-the-exact-same-app-using-apprun-dd1860cb8112 https://medium.com/@yiyisun/i-also-created-the-exact-same-ap...
- jiofih 6y agoSo you came here to recommend a framework you just found, looks exactly the same as hyperapp et al, and have no experience with, over others because of “virtual-dom advocacy”? Oh boy. > Languages don’t have any custom extensions. It’s just ... JSX I have news for you, JSX is a custom language extension, and a pretty deep one. I hear this a lot from React devs and it always irks me. If anything, Svelte is the closest to writing pure JS, HTML and CSS you’ll find, outside of hybrid solutions like Alpine. You can literally write a div tag, plain styles, and a plain function and it will all work with zero framework boilerplate. But back to the first point - why even bother to waste time judging and comparing? Just build something with it and see what the experience is like. That’s what matters.
- scotty79 6y agoI just came here to share what I learned yesterday about AppRun and about Svelte recently. Today I might read about hyperapp. JSX in AppRun is optional. You can use lithtml or just html. https://apprun.js.org/docs/#/06-view-patterns https://apprun.js.org/docs/#/06-view-patterns I'm not React dev although my last job was in React, previous was in Angular.js, the one before that in backbone.js and the one before that in jQuery, and the one before that in IE5.5 raw JavaScript. JSX is pretty established and focused (optional) language extension which I was initially cautious about as well. Svelte extensions feel for me a bit more adhoc and mandatory. I'm judging and comparing because I'm interested in frameworks and templating engines. Building stuff to judge something is fine but I have no need to build anything at the moment so I prefer now reading the code of stuff that other people have built and consider if it's a pleasant read for me. Svelte isn't same way angular.js wasn't. AppRun is, possibly even more than React was (at least the React before hooks). EDIT Hyperapp looks similar but as far as I can tell it doesn't have event bus. I worked with one large project (google maps competitor) in raw JS that used event bus and it was really amazing how much you could understand about it just hooking yourself to the bus and inspecting all events that go through there, knowing that nothing happens behind your back. So that's a clear win for me in AppRun vs hyperapp. Although AppRun seems to have one event bus per component so hooking up to all of them might require a bit of effort and tickery. Another thing is stateful components. Hyperapp doesn't have clear way of making stateful components. People are just winging it in various ways.
- scotty79 6y agoEDIT Hyperapp looks similar but as far as I can tell it doesn't have event bus. I worked with one large project (google maps competitor) in raw JS that used event bus and it was really amazing how much you could understand about it just hooking yourself to the bus and inspecting all events that go through there, knowing that nothing happens behind your back. So that's a clear win for me in AppRun vs hyperapp. Another thing is components. Hyperapp doesn't have clear way of making stateful components. People are just winging it in various ways.
- 6y ago