Live data from Hacker News

Ask HN: What are your experiences with Svelte (JS framework)

news.ycombinator.com

31–40 of 105 posts

Re: Ask HN: What are your experiences with Svelte (JS framework)

#31

Earlier quoted context omitted.

What? "you don't always need to think about the ability to hire additional developers who know your framework of choice" Unless you are hiring a junior dev who has no experience I think this statement is pretty far fetched. The ramp up time for a new dev on a framework that isn't widely adopted yet will be way higher, plus hiring developers who would even want to work with said framework sounds like a task in itself…

> The ramp up time for a new dev on a framework that isn't widely adopted yet will be way higher What, like a couple more weeks? I find it hard to believe that an experienced React/Vue/Angular dev would take a long time to pick up Svelte.

What, like a couple more weeks?

For a junior, sure, but I would expect a mid-to-senior developer working on front-end JS for a living to have some experience of at least one of the popular rendering libraries/frameworks and therefore to be able to understand at least the essentials of any of the others after a few hours of training. They're relatively simple interfaces, and many of the same concepts come up in most or all of them. Of course it will take a bit longer to understand the edge cases, any unusual or unique aspects, and any common traps to avoid, but you don't need all of that to be productive with everyday front-end development work. Presumably anyone new and/or below senior level is going to be supervised/mentored while they're getting up to speed and have their code reviewed anyway.

Re: Ask HN: What are your experiences with Svelte (JS framework)

#32

Every new thing has humble beginnings... https://blog.risingstack.com/the-history-of-react-js-on-a-ti... Fun Fact: The audience was skeptical. Most people thought React was a huge step backward. This happened as mostly 'early adopters' attended this conference, however, React targeted 'innovators.' The creators of React realized this mistake on time, and decided to start a 'React tour' later on to turn haters into ad…

I still think react and angular are a step back

I don't disagree, but there are enough references to the "big 3" in this discussion to warrant a reminder of its lack of developer acceptance early on.

Re: Ask HN: What are your experiences with Svelte (JS framework)

#33

Our small team is currently evaluating svelte as a replacement to riotjs and vuejs. We have reimplemented several of our projects in svelte and like the results and the easy learning curve for getting our team up to speed. The documentation for svelte has been first rate. The shareable REPL has made asking questions and answering them very easy. The community on Discord has been very helpful. Since we began evaluatin…

I would love to have you write up your experiences and how you would transition from VueJS to Svelte. I'm going to set a reminder to check this comment for replies every day for the next month, I am THAT interested. :)

Re: Ask HN: What are your experiences with Svelte (JS framework)

#34

I used it for a few small apps and enjoyed. I also build/rebuild a few static sites with Svelte and it is my default tool for static sites now.

How does Svelte handle static site generation? For context, I did some React for a job (using SSR), and have recently tried learning Vue in a small hobby project, using nuxt.js with it for static site generation. Is there an equivalent of nuxt for Svelte to handle all the generator tooling?

Re: Ask HN: What are your experiences with Svelte (JS framework)

#35

Earlier quoted context omitted.

>Looks neat but I don't know why you'd choose it over one of the big 3 Vue is backed and influenced by Chinese corporations, and React is FB, if you dislike both and can somehow afford to avoid depending on them you might become a happier dev.

Even if Vue was influenced by China, does it matter? It's an open source front-end library. It's there for everyone. And React being supported by Facebook isn't a bad thing either. Means more development time is able to go into it from professional developers.

[deleted]

Re: Ask HN: What are your experiences with Svelte (JS framework)

#36
post #3

I've been pretty happy with it. I migrated my website to use it and I'm also using it for a new project. I've found that I'm significantly more productive with it than when using React or Angular, since there is two-way binding and very little boilerplate. There is also a material UI binding for it [1], which makes it easier to develop advanced user interfaces. In my experience, bundle sizes with Svelte can be smalle…

How come there is no TypeScript support, but in the official GitHub repo (https://github.com/sveltejs/svelte) they state:

"The compiler is written in TypeScript, but don't let that put you off — it's basically just JavaScript with type annotations."

Re: Ask HN: What are your experiences with Svelte (JS framework)

#37
post #36
post #3

I've been pretty happy with it. I migrated my website to use it and I'm also using it for a new project. I've found that I'm significantly more productive with it than when using React or Angular, since there is two-way binding and very little boilerplate. There is also a material UI binding for it [1], which makes it easier to develop advanced user interfaces. In my experience, bundle sizes with Svelte can be smalle…

How come there is no TypeScript support, but in the official GitHub repo ( https://github.com/sveltejs/svelte ) they state: "The compiler is written in TypeScript, but don't let that put you off — it's basically just JavaScript with type annotations."

Writing a JS compiler in TS is easier than writing a TS compiler in TS, since TypeScript is a superset of JavaScript.

Re: Ask HN: What are your experiences with Svelte (JS framework)

#38
post #34

I used it for a few small apps and enjoyed. I also build/rebuild a few static sites with Svelte and it is my default tool for static sites now.

How does Svelte handle static site generation? For context, I did some React for a job (using SSR), and have recently tried learning Vue in a small hobby project, using nuxt.js with it for static site generation. Is there an equivalent of nuxt for Svelte to handle all the generator tooling?

There is! https://sapper.svelte.dev/

Re: Ask HN: What are your experiences with Svelte (JS framework)

#39
Svelte (and Sapper) has the potential to be huge. I normally don't participate on any online forum but signed up specifically to comment on this topic. I've experienced building web sites starting with cgi-bin handlers to React apps and everything in between. React reminds me of the Java days when we would use the Spring framework - huge tooling and setup, architecturally moribound (in a sense, dont flame me), and too many layers separated from the fundamental technology - HTML/CSS/Javascript. Out of all web tech, React is my least favorite and I find it in many ways to be absurd (my opinion, dont flame me). Don't get me started on React Native...

Svelte is the proper step forward - it's an actual improvement in web development and keeps you close to the fundamental technologies without large architectural costs. I know this is a religious argument but after 20 years I am squarely in the readable code vs highly architected code camp. With heavy architecture you have to know too much to get into the code. I remember a joke about Java that to read a text file you needed like 20 LOC and 10 classes (or something like that don't flame me please).

Svelte is clean, has intuitive separation of concerns, is close to the fundamentals, and using it feels like web development has actually been improved. The lack of Typescript will be resolved hopefully soon.

I only wrote this as a public kudos to the Svelte team and to voice my support. Angular's early days were close, vue is closer, Svelte might have nailed it. React belongs in the trash.

Dont flame me please

Re: Ask HN: What are your experiences with Svelte (JS framework)

#40

Every new thing has humble beginnings... https://blog.risingstack.com/the-history-of-react-js-on-a-ti... Fun Fact: The audience was skeptical. Most people thought React was a huge step backward. This happened as mostly 'early adopters' attended this conference, however, React targeted 'innovators.' The creators of React realized this mistake on time, and decided to start a 'React tour' later on to turn haters into ad…

I still think react and angular are a step back

A step back from what? Jquery?
Post reply on HN