Live data from Hacker News

Svelte – A UI framework that compiles into tiny standalone JavaScript modules

svelte.technology

101–110 of 236 posts

Re: Svelte – A UI framework that compiles into tiny standalone JavaScript modules

#101
post #100

I can not keep up with all the new X flavored js frameworks, where X is [React, Angular, Vue, Mithril, Redux, Mobx,...]. This is exactly why I chose Clojurescript for my pet stuff and with hopes, that I will be able to use it for making money too. Learning curve can be steep for someone not used to functional way and/or lisp, but at the end you get a very mature, simpler and consistent language with great tooling. Fi…

I cannot keep up with random javasscript frameworks... therefore I use [random framework in some other language]...

Re: Svelte – A UI framework that compiles into tiny standalone JavaScript modules

#102
Why are there complex MVC frameworks that run in the browser in the first place? I might get some flack for this, and I'm prepared for it, but why can't we use JS as just a view manipulator? Leave data processing and business logic to the back-end, on the server, and that can take care of needing a front-end framework and large app.

Re: Svelte – A UI framework that compiles into tiny standalone JavaScript modules

#103
post #102

Why are there complex MVC frameworks that run in the browser in the first place? I might get some flack for this, and I'm prepared for it, but why can't we use JS as just a view manipulator? Leave data processing and business logic to the back-end, on the server, and that can take care of needing a front-end framework and large app.

"Why waste energy doing stuff on your machines what you can get your users to do for you?"

...is the general reasoning. However, personally, I find that unless you're very well organised, you're not saving yourself much, if anything, in the long run.

Re: Svelte – A UI framework that compiles into tiny standalone JavaScript modules

#104
post #102

Why are there complex MVC frameworks that run in the browser in the first place? I might get some flack for this, and I'm prepared for it, but why can't we use JS as just a view manipulator? Leave data processing and business logic to the back-end, on the server, and that can take care of needing a front-end framework and large app.

I guess it depends on the use case. Sometimes the thing can respond quicker to user inputs if everything is in the browser.

Re: Svelte – A UI framework that compiles into tiny standalone JavaScript modules

#105
This looks interesting. For the past 3 years I've been using ractivejs and really enjoy it.

I'm wondering if Svelte will take away development efforts from ractivejs?

OT >The web's obesity crisis, solved. Svelte turns your templates into tiny, framework-less vanilla JavaScript.

Made me think of [idlewords][1] website obesity presentation...

[1]:http://idlewords.com/talks/website_obesity.htm

Re: Svelte – A UI framework that compiles into tiny standalone JavaScript modules

#106
post #102

Why are there complex MVC frameworks that run in the browser in the first place? I might get some flack for this, and I'm prepared for it, but why can't we use JS as just a view manipulator? Leave data processing and business logic to the back-end, on the server, and that can take care of needing a front-end framework and large app.

You certainly can. Plenty of people still do.

It's hard to build in an interactive user interface when you have to wait for full page loads to complete between actions. It can be done with thoughtful planning, but sooner or letter that JS you sprinkle in to do view manipulation is going to be unwieldy.

Re: Svelte – A UI framework that compiles into tiny standalone JavaScript modules

#107
post #18

The 'Mustaches' bit killed it for me, but up until then I was enjoying the simplicity of the API. I like React (and React-like implementations) because of being able to use JS to build up a view

We should do a better job of clarifying: this isn't Mustache-the-language, it's just using {{ and }} as delimiters. The syntax is simpler than Mustache, and allows you to use any inline JavaScript expression, which will become fully reactive.

Er, can you explain further with an example? I'm confused about using both something like {{#if}} and pure JS

Re: Svelte – A UI framework that compiles into tiny standalone JavaScript modules

#108
post #18

The 'Mustaches' bit killed it for me, but up until then I was enjoying the simplicity of the API. I like React (and React-like implementations) because of being able to use JS to build up a view

Yeah, same. Can't give up JS/TS templating and typesafety. simply for a smaller size, I already use something that is way, way smaller than react.

I'm curious, what do you use?

Re: Svelte – A UI framework that compiles into tiny standalone JavaScript modules

#109
> You can't write serious applications in vanilla JavaScript without hitting a complexity wall.

This somewhat annoys me. You can definitely do it.

Sure, it's easier, more comfortable, safer and quicker to use something like React. But you can still do some modularization that scales reasonably well without it.

I've been working on an app and spent a lot of time looking into frameworks to handle its complexity but ended up sticking to vanilla JS to keep more control, especially for detail optimizations.

Re: Svelte – A UI framework that compiles into tiny standalone JavaScript modules

#110

This looks interesting. For the past 3 years I've been using ractivejs and really enjoy it. I'm wondering if Svelte will take away development efforts from ractivejs? OT >The web's obesity crisis, solved. Svelte turns your templates into tiny, framework-less vanilla JavaScript. Made me think of [idlewords][1] website obesity presentation... [1]: http://idlewords.com/talks/website_obesity.htm

I think Rollup already took time away from Ractive. It's really too bad, I think Ractive has some great ideas and I really enjoyed working with it. It was the best way to build web UIs I've come across. But I feel its future is uncertain so it's hard to recommend others begin using it.
Post reply on HN