Live data from Hacker News

Thoughts on Svelte

tyhopp.com

81–90 of 194 posts

Re: Thoughts on Svelte

#81
post #29

Earlier quoted context omitted.

I wonder if this is a visualization problem. Imagine if you could see the dependency graph visually.

In my opinion, this is yet another area where SolidJS is clearly the better option. The dev tools give you a full visual reactive graph. I like Svelte, but people like to pretend that it's easier than it is.

which solid-dev-tool shows are graph?

Re: Thoughts on Svelte

#82
post #72

I switched from Next.js to Svelte over a year ago. Since then, I have built medium-sized business products, and I can confidently say that Svelte is a joy to use. Their developer experience is on point. I agree with all the points made in the blog above, especially when it comes to working with forms. Svelte makes it easy with its inbuilt store, form actions, pageload, serverload, animations, and all of this results…

[deleted] I confused vercel with nextjs.

Vercel, the hosting platform that created Next.js, employs Rich Harris who created Svelte. You can host Svelte on Vercel.

Next.js is a React framework. It does not support Svelte.

Re: Thoughts on Svelte

#83
post #29

Earlier quoted context omitted.

I wonder if this is a visualization problem. Imagine if you could see the dependency graph visually.

In my opinion, this is yet another area where SolidJS is clearly the better option. The dev tools give you a full visual reactive graph. I like Svelte, but people like to pretend that it's easier than it is.

I think this is what you're talking about ? https://chrome.google.com/webstore/detail/solid-devtools/kmc...

Re: Thoughts on Svelte

#84

I work with React (NextJS) and from working on things in Vue, and Nuxt - the one thing I absolutely hate about React is state management. If you have never used Pinia[0] (Vuex) with Vue, it's just so, so, so much easier. I'm using Zustand[1] with React as it is as similar as I can find to Pinia, but the whole hook system is just painful to work with... OK rant over. I haven't built anything substantial with Svelte, b…

I use MobX with Vue and React; works great; decoupled from any UI library ecosystem and is transferable knowledge.

Re: Thoughts on Svelte

#85
post #81

Earlier quoted context omitted.

In my opinion, this is yet another area where SolidJS is clearly the better option. The dev tools give you a full visual reactive graph. I like Svelte, but people like to pretend that it's easier than it is.

which solid-dev-tool shows are graph?

I wasn't aware there were multiple. This one has Ryan Carniato's seal of approval. He talks about it on stream often.

Here you go: https://github.com/thetarnav/solid-devtools

Re: Thoughts on Svelte

#86
post #83

Earlier quoted context omitted.

In my opinion, this is yet another area where SolidJS is clearly the better option. The dev tools give you a full visual reactive graph. I like Svelte, but people like to pretend that it's easier than it is.

I think this is what you're talking about ? https://chrome.google.com/webstore/detail/solid-devtools/kmc...

Yep, that's it. It's in early development, and you have to install an additional library. But, it works wonderfully.

Re: Thoughts on Svelte

#87
post #65

Earlier quoted context omitted.

Co-opting my comment to add another thought. For me, Svelte's big superpower is that it does a great job of looking like plain JS sitting next to templated HTML, and the two just magically react to each other. The reason this is huge is because 90% of my coding is not Svelte. Usually I'm working on app logic, so I might go weeks or occasionally months without touching any UI code. With Vue I used to dread making UI c…

> Usually I'm working on app logic, so I might go weeks or occasionally months without touching any UI code. This is a very interesting point, because my experience is quite the opposite. Most of the time changes to the apps that I typically worked on (ERP/CRM platforms) involved both DB migrations, as well as back end and front end work. And with the front end, changes to the logic almost always resulted in changes…

Yeah, it's very subjective - the above has been my experience, but I wouldn't argue that it will necessarily reflect anyone else's.

But for why I go so long without touching the UI code, it's just because the project is a 3D voxel game and there's a lot of big complicated parts to work on that don't involve any HTML UI.

Re: Thoughts on Svelte

#88
I'm pretty sure there are still people building really awesome things with Ember or JQuery or Angular or Backbone.

Oh have you heard of luxpop.js all the cool people are using it, it has bitransitional anti-mutation mega-flip data binding so you regain a microsecond rendering that p tag.

You haven't heard of it? You dinosaur!

Re: Thoughts on Svelte

#89
post #26

I switched my game's UI from Vue2 to Svelte maybe a year ago, and I agree with almost all of the article. One thing I think the author overlooks: the appeal of Svelte's built-in animations and transitions is that they work correctly when the element's lifecycle is being managed by Svelte. E.g. with code like this: {#if showFoo} Foo! {/if} When `showFoo` changes to false, Svelte will first play a flyout transition and…

Can i ask you what type of game it is? Web or desktop? I wanted to dive into the topic of UI in desktop/native games for a while

Re: Thoughts on Svelte

#90
I used Vue in the past and decided to use Svelte early this year, I do not need SEO or anything SSR, just the original SPA with CSR.

then I found out Sveltekit is really a SSR-first design, and Svelte itself has no client side routing etc. While Vercel sells Sveltekit(and Next.js) to be CSR ready, I don't buy it, I don't need the complexity of SSR in the code when I just need a clean CSR, however you paint the SSR-is-for-all picture.

So I switched to React, now React is also favoring SSR-first(next.js etc) approach. I'm back to Vue for future projects.

Vue by default remains to be the sole and true CSR SPA, if you need SSR, add Nuxt will do, but, at least it does not force me into a SSR-first default (and recommended) framework.

Post reply on HN