News for hackers. Stuff that matters.
Re:HTMx by julianeon on Friday May 26, 2023 @01:31AM (#36080360)
I think this comment is a bit out of date, especially if you’ve been watching JS from a distance for the past couple decades. This would’ve been true circa 2014. In 2023 it’s obsolete.

There’s one framework that won, that’s all you have to learn, as far as the industry goes (as opposed to hobbyists) it’s been decided. React won. React is the framework you learn.

“Popular frameworks for the past 6 years” - React has been dominant over that entire time period, from beginning to end. React is what you would’ve reached for 6 years ago (it was already mature then, in 2017) and it’s what you’d turn to now. This is what I mean. You could update your React code to use hooks instead of classes - or you could not, it will continue to work if you don’t.

The “JS changes all the time” take is frankly out of date in 2023. “Which framework do I learn…” you learn React, the framework that won. It’s pretty much that simple.

Re:HTMx by kkapelon on Friday May 26, 2023 @01:42AM (#36080433)
> React won. React is the framework you learn

So nobody should learn AngularJS any more?

Re:HTMx by markmark on Friday May 26, 2023 @02:13AM (#36080645)
Nope.
Re:HTMx by SanderNL on Friday May 26, 2023 @01:34AM (#36080378)
That’s a bubble. You are in a bubble. React is dominant, sure, like the US is dominant, but it’s not The World.
Re:HTMx by Hermitian909 on Friday May 26, 2023 @02:02AM (#36080571)
The important part is that it's a bubble you can choose to live in. Companies everywhere use React and almost no one need ever choose to learn something else. As long as you know it you will be employable for another 20 years, just like with Java.
Re:HTMx by genmud on Friday May 26, 2023 @08:33PM (#36090998)
But people in that bubble keep shaming people who aren’t… and react keeps changing, so it’s not like you learn it once, it requires careful study and understanding of all the different permutations that are used in different environments.

You generally can’t go from company A to company B who both use react and have the same calling convention, code structure or tool chains even though they are both using react.

Re:HTMx by SanderNL on Saturday May 27, 2023 @02:08AM (#36092459)
Ouch, 20 years? I sincerely hope so for their sake, but I wouldn’t bet 10 dollars on it.
Re:HTMx by 59nadir on Friday June 09, 2023 @02:28AM (#36254060)
20 years is very optimistic; React is already losing users: https://2022.stateofjs.com/en-US/libraries/front-end-framewo...

Retention shows a clear trend for all frameworks and even in general conversation Solid.js has been taking up more and more of peoples' attention with signals.

The compound advertisement of hearing about Svelte and why it's always going to be faster than React because of not having a VDOM along with Solid.js will make a dent in React and it will become the next Angular. 20 years is not going to happen.

Re:HTMx by jdthedisciple on Friday May 26, 2023 @01:45AM (#36080455)
I don't use React.

Only VanillaJS.

And my clients are happy it seems.

So React clearly isn't the only choice, unless you're a new graduate with no clue about anything, then sure start with React.

Re:HTMx by genmud on Friday May 26, 2023 @08:03PM (#36090862)
Hard disagree… react is probably one of the best examples of this. React 15/16/17/18 over this period of time is a nightmare to maintain for people who don’t keep up with react if they want to casually jump in or out of.

If you built an app in react 16 and wanted to upgrade to 18, using the documentation it almost resembles 2 different frameworks. Sure, maybe the code executes, but all the js devs would be like “why did you write it like that”?