Live data from Hacker News

Introducing Svelte, and Comparing Svelte with React and Vue (2021)

joshcollinsworth.com

101–110 of 213 posts

Re: Introducing Svelte, and Comparing Svelte with React and Vue (2021)

#101
post #3

I've worked with all three frameworks, but as a mostly single dev/engineer I very very much prefer Svelte because it lacks a lot of boilerplate that React has, and it's easier to think about than Vue's clunky way to write variables and functions. But I'm a "hacker type" and don't work in a large tech company. I haven't seen Svelte in any sort of "real tech companies", haven't seen it on job boards, and it doesn't see…

Svelte is indeed more svelte and might appeal more to some, but React doesn’t have a lot of boilerplate to begin with. Sure, calling useState is more work than simply declaring a value and useEffect is badly designed. That’s about it.

Nowhere near enough “to work for large teams”, as is the argument for Angular and the Java world it gets its bad ideas from.

Re: Introducing Svelte, and Comparing Svelte with React and Vue (2021)

#103
post #72

Single file components like .svelte and .vue are nice at first glance. But I want typescript, eslint and prettier understand my code natively and not wrapped in custom syntax and smushed into one file that every tooling now has to support. Maybe it's finally time for someone to standardize this - even if just pointing at what vue & svelte already do - so every tooling can go ahead and support amalgams of filetypes in…

Funnily enough, IDEs a decade ago (more, even) solved this for PHP already, as even back then a lot of PHP was still HTML and PHP (and JS) intermixed in one file. It’s a shame we haven’t solved it properly in modern editors without having to rebuild the tooling over and over again for every new framework.

Re: Introducing Svelte, and Comparing Svelte with React and Vue (2021)

#104
post #22

Personally to me the best framework is no framework at all. Instead I use libraries of code and Web Components. The libraries are either my own or some existing ones. Overall writing web front end this way for me is the most natural way. In my personal experience I spend less time creating the web front ends this way comparatively to when using "frameworks". No "compiling" is needed either, other then optional minimi…

That can work relatively well for projects where there are a handful of engineers, but I wonder whether it doesn’t be some much harder as your team grows to 20+ engineers working in the same UI code base?

Frameworks does not help in this case any more than proper organization / structuring of code. It is as easy to fuck up your React app setup as it is plain code.

Just make sure that overall architecture and process enforced and are designed by experienced person/s rather than hamsters.

Re: Introducing Svelte, and Comparing Svelte with React and Vue (2021)

#105
post #103
post #72

Single file components like .svelte and .vue are nice at first glance. But I want typescript, eslint and prettier understand my code natively and not wrapped in custom syntax and smushed into one file that every tooling now has to support. Maybe it's finally time for someone to standardize this - even if just pointing at what vue & svelte already do - so every tooling can go ahead and support amalgams of filetypes in…

Funnily enough, IDEs a decade ago (more, even) solved this for PHP already, as even back then a lot of PHP was still HTML and PHP (and JS) intermixed in one file. It’s a shame we haven’t solved it properly in modern editors without having to rebuild the tooling over and over again for every new framework.

Also asp and asp.net etc. I'm sure there's some on the java side I'm forgetting also.

Re: Introducing Svelte, and Comparing Svelte with React and Vue (2021)

#106

At windmill ( https://github.com/windmill-labs/windmill ), our whole frontend is in svelte, we love it, the performance are second to none and the dev experience is great. But finding svelte dev is proving itself harder than I thought. So there is that issue as well.

Surely any reasonably smart React dev will become productive within a very short period of time? Or is it that people simply don't apply when they see Svelte on the tech list?

Re: Introducing Svelte, and Comparing Svelte with React and Vue (2021)

#107
post #49
post #3

I've worked with all three frameworks, but as a mostly single dev/engineer I very very much prefer Svelte because it lacks a lot of boilerplate that React has, and it's easier to think about than Vue's clunky way to write variables and functions. But I'm a "hacker type" and don't work in a large tech company. I haven't seen Svelte in any sort of "real tech companies", haven't seen it on job boards, and it doesn't see…

Check out https://sveltejobs.com/ And also the #jobs channel on the Svelte Discord https://svelte.dev/chat There are jobs being posted every day. And btw, we're one of those looking for Svelte engineers.

Seems like you could put any engineer on Svelte.

Re: Introducing Svelte, and Comparing Svelte with React and Vue (2021)

#108
post #5

The only thing I don't like about Svelte is the reactive blocks, prefixed with $:. There are a number of gotchas, like updating complex objects, which make things a bit...implicit rather than explicit.

Reactivity is hard in any platform. If you don't like those, I wonder how you'd like the extensive use of rxjs in Angular.

I think svelte has taken the best part of the rxjs observable pattern without the PhD level of insanity in the reactive frameworks.

Beyond debouncing and throttling, the uses for rxjs style reactive patterns (all the variations of Subjects) gets super confusing fast. (Look at a moderate sized Angular app and you see the horror of types and brackets needed to handle http calls and errors correctly, for example).

Re: Introducing Svelte, and Comparing Svelte with React and Vue (2021)

#109
post #103

Earlier quoted context omitted.

Funnily enough, IDEs a decade ago (more, even) solved this for PHP already, as even back then a lot of PHP was still HTML and PHP (and JS) intermixed in one file. It’s a shame we haven’t solved it properly in modern editors without having to rebuild the tooling over and over again for every new framework.

Also asp and asp.net etc. I'm sure there's some on the java side I'm forgetting also.

Oh heck, yeah you’re right! Everything old is new again I suppose. Guess that makes me old now if I’m noticing it

Re: Introducing Svelte, and Comparing Svelte with React and Vue (2021)

#110
post #49

Earlier quoted context omitted.

Check out https://sveltejobs.com/ And also the #jobs channel on the Svelte Discord https://svelte.dev/chat There are jobs being posted every day. And btw, we're one of those looking for Svelte engineers.

I’m an engineer who has recently done a large project and a few small ones in Svelte. Where do I apply?

I work at digivault.com in London, UK and we provide custody for digital assets. I've just prepared our job listing and posted it to the Svelte Discord. You'll find all the details about the role there. Hopefully I can also get details on our website soon.
Post reply on HN