Live data from Hacker News

Thoughts on React vs. Vue vs. Everything Else in 2023

chrlschn.medium.com

31–40 of 44 posts

Re: Thoughts on React vs. Vue vs. Everything Else in 2023

#31
post #4

Every time I try to do something with modern JS I'm reminded of this blog post ( https://peterxjang.com/blog/modern-javascript-explained-for-... ) And also every time I end up giving up because it's so damn complex

I agree it can be very confusing to set all of this up from scratch, but if you're using something like Vue CLI, all of these dependencies and configs are generated for you.

IMO this only kicks the can down the road. I like to understand my build system from the beginning; these project-init scripts change so frequently.

Re: Thoughts on React vs. Vue vs. Everything Else in 2023

#32

With H/3, modern frameworks have become unnecessary deviations from web standards that result in high costs and lower app lifetimes. Do standard server side work, don’t use node as a server, sprinkle a bit of typescript where needed, and keep things lean. As a recovering front end developer of 20 years, someone who has played with every damn framework and used most of them professionally; just stick to web standards…

> For example: we are using HN. It is simple. It works. It does not need to change.

There are lots of basic issues with HN. For example, if you vote on a comment while writing a reply, the page reloads and you lose your comment. A web component for voting would do wonders here.

Re: Thoughts on React vs. Vue vs. Everything Else in 2023

#34

With H/3, modern frameworks have become unnecessary deviations from web standards that result in high costs and lower app lifetimes. Do standard server side work, don’t use node as a server, sprinkle a bit of typescript where needed, and keep things lean. As a recovering front end developer of 20 years, someone who has played with every damn framework and used most of them professionally; just stick to web standards…

> For example: we are using HN. It is simple. It works. It does not need to change. There are lots of basic issues with HN. For example, if you vote on a comment while writing a reply, the page reloads and you lose your comment. A web component for voting would do wonders here.

[deleted]

Re: Thoughts on React vs. Vue vs. Everything Else in 2023

#35

With H/3, modern frameworks have become unnecessary deviations from web standards that result in high costs and lower app lifetimes. Do standard server side work, don’t use node as a server, sprinkle a bit of typescript where needed, and keep things lean. As a recovering front end developer of 20 years, someone who has played with every damn framework and used most of them professionally; just stick to web standards…

What is H/3?

HTTP3. The protocol name used in a lot of places is H3 (for example the alt-svc header)

Re: Thoughts on React vs. Vue vs. Everything Else in 2023

#36
post #24

Earlier quoted context omitted.

Off the top of my head: Angular is more like Svelte+SvelteKit. Router and plumbing included. Angular 16 adds signals, so that's a recent difference. Svelte handles shared state+reactivity as stores. Svelte contexts allows partitioning of shared state. Reactivity comes from a small superset syntax of JavaScript that acts a bit like a spreadsheet. Svelte is a compiler rather than a full-size runtime library. Angular re…

Thanks! > Angular still has a virtual DOM It does not.

I stand corrected. It has an "incremental DOM". https://blog.nrwl.io/understanding-angular-ivy-incremental-d...

Thank you.

Re: Thoughts on React vs. Vue vs. Everything Else in 2023

#37
post #31

Earlier quoted context omitted.

I agree it can be very confusing to set all of this up from scratch, but if you're using something like Vue CLI, all of these dependencies and configs are generated for you.

IMO this only kicks the can down the road. I like to understand my build system from the beginning; these project-init scripts change so frequently.

Only if you upgrade. ;-)

If you stay on the same version of the init script, you're still marginally better than rolling your own.

On the other hand, if you learn it once and then allow updates to occur, you'll still understand the process in the abstract. You'll just have to let go of the notion of knowing all details of your stacks from top to bottom. This is why we have teams and specializations. Computing long ago exceeded typical human capacity for complete knowledge. Now we learn as much as we can including the wisdom of who to trust when the solution is bigger than we can individually muster.

We trust compilers and browsers and libraries and frameworks all the time. When they break, hopefully the broken area is in our wheelhouse or at least well-documented. But the issue of complexity isn't going away if we want to continue making forward progress.

My frontend dev setups perform auto reload on save in my IDE within a second, have clean integration with testing suites and CI/CD, and do so much beyond my ability to build on my own. Even if I were dedicated to dev build environments and had the sufficient skill to make a stable and complete solution, I will have incurred the opportunity cost of not actually solving my initial frontend problems the clients are paying me for.

Change happens.

"Dr. Strangedevelop" or "How I Learned to Stop Worrying and Love the Vite"

Re: Thoughts on React vs. Vue vs. Everything Else in 2023

#38
post #36

Earlier quoted context omitted.

Thanks! > Angular still has a virtual DOM It does not.

I stand corrected. It has an "incremental DOM". https://blog.nrwl.io/understanding-angular-ivy-incremental-d... Thank you.

For this following at home:

Virtual DOM (React, Vue) is a technique that produces a complete version of the DOM which is then reconciled.

Incremental DOM (Angular, Svelte) is a technique that computes the DOM diff/update directly.

Re: Thoughts on React vs. Vue vs. Everything Else in 2023

#39
post #37
post #31

Earlier quoted context omitted.

IMO this only kicks the can down the road. I like to understand my build system from the beginning; these project-init scripts change so frequently.

Only if you upgrade. ;-) If you stay on the same version of the init script, you're still marginally better than rolling your own. On the other hand, if you learn it once and then allow updates to occur, you'll still understand the process in the abstract. You'll just have to let go of the notion of knowing all details of your stacks from top to bottom. This is why we have teams and specializations. Computing long ag…

I agree with everything you wrote.

Also, things seem to be converging towards simplicity in a positive way, comparing e.g. Vite to Webpack.

But without any disagreement: the churn is real.

Not upgrading is only an option if you

1) are sure you don't run vulnerable code on a server (e.g. through SSR) - if any code is public-facing, ignoring most "npm audit" reports ceases to be an option. 2) don't need new packages to change your build setup that are significantly newer than your previous setup.

To repeat, I don't disagree and I prefer the spirit of your comment to my critique.

Almost all of the time it is a good idea to settle on versions and evaluate when upgrading is worth it.

Update costs can also vary a lot depending on the project.

In other words, preserving behavior while fixing dependency conflicts, breaking changes etc after updating major versions.

If one avoids to do clever stuff with the bundler and if the project requirements are simple, it can be easy upgrade or even swap tools (e.g. Webpack for Vite).

This rings very true for me, bravo:

> My frontend dev setups perform auto reload on save in my IDE within a second, have clean integration with testing suites and CI/CD, and do so much beyond my ability to build on my own. Even if I were dedicated to dev build environments and had the sufficient skill to make a stable and complete solution, I will have incurred the opportunity cost of not actually solving my initial frontend problems the clients are paying me for.

> Change happens.

> "Dr. Strangedevelop" or "How I Learned to Stop Worrying and Love the Vite"

Post reply on HN