News for hackers. Stuff that matters.
Re:Htmx Is the Future by willio58 on Friday May 05, 2023 @04:23PM (#35834692)
Angular is falling off hard in the frontend frameworks race. And I totally agree about how the boilerplate and other things about Angular feels bad to work with. Other frameworks are far easier to build with, to the point where a 1-person team can easily handle them. React is being challenged but still has the biggest community, it's a much better place to start than Angular when evaluating frameworks like this.

All that being said, I'm glad HTMX worked out for you!

Re:Htmx Is the Future by fridgemaster on Friday May 05, 2023 @06:29PM (#35835885)
Angular 2 works fine out of the box, and already provides a good architecture that noobs struggle to come up with in "freestyle" solutions like React. Angular's bi-directional binding is way superior and simpler to use vs React's mono-directional binding: you can just use bound variables, no need to do complicated setState or use abominations like Redux. Vue also has bi-directional binding. Essentially there are many alternatives that are superior to React, which is where it is mostly because of fame and popularity.
Re:Htmx Is the Future by agrippanux on Friday May 05, 2023 @06:57PM (#35836110)
You may of not used React in the past few years, but setState fell out of favor a while ago with the release of the useState hook and Redux (which I agree is an abomination) isn't necessary for 95% (imo) cases, again thanks to hooks.

For bound variables you can use MobX or signals in Preact.

Re:Htmx Is the Future by ukuina on Friday May 05, 2023 @07:50PM (#35836552)
How does something "fall out of favor" in React?

Is it deprecated?

Re:Htmx Is the Future by willio58 on Monday May 08, 2023 @03:45PM (#35866151)
The recommendation for React projects for the past few years has been to write everything using functional components vs the old class-based components. In function-based components, you can only use hooks so useState is that's why the parent comment is referring to.
Re:Htmx Is the Future by halfcat on Friday May 05, 2023 @07:07PM (#35836212)
> React is being challenged but still has the biggest community

jQuery and PHP have entered the chat