News for hackers. Stuff that matters.
Re:“Clean” Code, Horrible Performance by antoineMoPa on Tuesday February 28, 2023 @04:38PM (#34975221)
Vue could also be an option, but I personally want to learn some Solid, as I see it could be preferred by the current mass of React frontend developers, more than Svelte and Vue. The syntax and philosophy of Solid looks closer to React, while having a stronger focus on performance.
Re:“Clean” Code, Horrible Performance by bcrosby95 on Tuesday February 28, 2023 @06:07PM (#34976218)
Okay, I'll bite: does Vue perform better than React? Your post makes no mention of this, I don't know if it does, and offering it as an alternative due to performance reasons, without knowing this, seems a tad premature.
Re:“Clean” Code, Horrible Performance by antoineMoPa on Wednesday March 01, 2023 @09:12AM (#34982577)
In my personal experience, the Vue apps I've worked on have been snappier. There are some fast React apps out there, but I think a lot of work goes into optimizing React apps, versus Vue being pretty fast by default.

When react introduced hooks, it was fun for a while, but then we discovered the frequent re-render issues and had to change the way we think when building components and refactor old components. We have to manually wrap components in useMemo. This is the kind of things Vue has avoided me so far and React let me down. React relies on running all render methods instead of doing granular updates, I think this hurts performance. Vue listens to property changes and can perform granular updates.

Re:“Clean” Code, Horrible Performance by antoineMoPa on Friday March 03, 2023 @06:16PM (#35016308)
I kind of want to amend that! I discovered today that maybe there is hope with granular update libraries such as Jotai, @preact/signals-react and recoiljs.