How did Rich Harris, a "graphics editor," write Svelte? So many designers hardly know JavaScript at all. This one wrote one of the most advanced JavaScript frameworks I've ever seen. It's not just JavaScript. He wrote a compiler that takes a custom, declarative syntax and converts it to imperative JavaScript to surgically update the DOM.
Funny you mention this, Evan You, the author of VueJS was a graphic designer before writing VueJS
The Svelte Compiler Handbook
61–70 of 139 posts
Re: The Svelte Compiler Handbook
#62Earlier quoted context omitted.
I'm actually working on one. I don't know what will come out of it, but it's an interesting endeavor. As soon as it's shareable I will share it on Github. I'm basically trying to do a superset of typescript where you create elements so: const root = c({ el: 'div', children: [ `hello, ${store.user.name}` ], attr: { class: 'bold smart', id: 'abc', bla: true, }, evts: { click: () => { console.log("Clicked") } } }); And…
That is awfully verbose.
Re: The Svelte Compiler Handbook
#63How did Rich Harris, a "graphics editor," write Svelte? So many designers hardly know JavaScript at all. This one wrote one of the most advanced JavaScript frameworks I've ever seen. It's not just JavaScript. He wrote a compiler that takes a custom, declarative syntax and converts it to imperative JavaScript to surgically update the DOM.
- track people and systematically destroy privacy forever
- trick kids into clicks via what should be illegal recommendation algorithms
- use their insanely talented minds to work in advertising
Need more diversity in tech. This should be encouraged vs gulping down the big fat framework FB tells you to
Re: The Svelte Compiler Handbook
#64Having a hard time choosing between Svelte and Elm. For a lone in house dev, any recommendations?
I've also used Elm for another little side project, and it was super fun to learn, but it was a bit mind-bending at first.
I think Svelte is a fairly safe choice because it's actively developed and because it's not too different from Angular/React/Vue.
If there's any possibility that you'll have to hand this code over to someone else, I think Elm is a much less safe choice.
So, to echo tomerbd's reply: Elm for fun; Svelte for profit.
Re: The Svelte Compiler Handbook
#65Having a hard time choosing between Svelte and Elm. For a lone in house dev, any recommendations?
I'd say Svelte is much closer to "regular" programming. You will have to bend your thinking a bit with Elm. Svelte seems great, but it seems to be developed by one person primarily. Also, that person lives in NY and the project looks paused at the moment.
Re: The Svelte Compiler Handbook
#66Having a hard time choosing between Svelte and Elm. For a lone in house dev, any recommendations?
I'm currently writing a blog about trying as many front end frameworks/languages as I can. I'm going with this approach because I want to see what I can learn from each of them. For example, I've learned from Elm that compilers can be much friendlier. I've learned from Svelte that people are more willing to accept what appears to be familiar.
You may learn something completely different.
Re: The Svelte Compiler Handbook
#67Having a hard time choosing between Svelte and Elm. For a lone in house dev, any recommendations?
I used Svelte 3 for a fairly complex side project last year (rewrote it from React), and it's my favorite JS framework so far. I do wish the TypeScript story was better though. I've also used Elm for another little side project, and it was super fun to learn, but it was a bit mind-bending at first. I think Svelte is a fairly safe choice because it's actively developed and because it's not too different from Angular/R…
Re: The Svelte Compiler Handbook
#68How did Rich Harris, a "graphics editor," write Svelte? So many designers hardly know JavaScript at all. This one wrote one of the most advanced JavaScript frameworks I've ever seen. It's not just JavaScript. He wrote a compiler that takes a custom, declarative syntax and converts it to imperative JavaScript to surgically update the DOM.
Re: The Svelte Compiler Handbook
#69How did Rich Harris, a "graphics editor," write Svelte? So many designers hardly know JavaScript at all. This one wrote one of the most advanced JavaScript frameworks I've ever seen. It's not just JavaScript. He wrote a compiler that takes a custom, declarative syntax and converts it to imperative JavaScript to surgically update the DOM.
Lots of under-recognised talent is eveywhere.
Re: The Svelte Compiler Handbook
#70I like Svelte very much. My biggest struggle is with tooling, especially the lack of proper IDE support. I know there are several IDEs with plugins for Svelte, but they're either obsolete or lacking essential features. That's why I won't use it for me next project, just not worth it going against the wind. Now, I am looking at Flutter. Seems to match my needs, and it's also actively maintained. Never underestimate th…