News for hackers. Stuff that matters.
Re:Htmx Is the Future by giraffe_lady on Friday May 05, 2023 @12:15PM (#35831357)
I also switch back and forth between two large projects written in different decades and it definitely gives an interesting perspective on this. Basically every time I'm in php I go "oh yeah I see why we do react now" and every time I'm in react I go "oh right I see why php still exists."
Re:Htmx Is the Future by tempest_ on Friday May 05, 2023 @12:50PM (#35831921)
To be fair to PHP there have been quite a few improvements to the language in recent years.

I even hear Laravel is pretty nice to use.

I'll never know that stuff though because the PHP I generally encounter is 15 years old spaghetti.

Re:Htmx Is the Future by giraffe_lady on Friday May 05, 2023 @01:04PM (#35832139)
Yeah I also hear that and also have no idea because I'm permanently in that 5.6 shit.
Re:Htmx Is the Future by cutler on Friday May 05, 2023 @05:42PM (#35835466)
PHP lost its identity with the release of PHP5 since when it is nothing more than an interpreted version of Java.
Re:Htmx Is the Future by gofreddygo on Monday May 08, 2023 @03:30PM (#35865978)
> ... I see why we do react now

I switch between a fair variety frontend, backend myself and have never had that reaction.

It's always, I could do exactly this in 2005 using jquery + JSP, it would not need any of these 1500 dependencies and the user would see absolutely no difference (except downloading 10 times more js today at 5G speeds)

The scalability issues non-facebook scale webapps are trying to solve for do not exist. These apps will be dead before they reach a 10% of that scale and yet the project folks just don't get it.

anecdotally, github project bookmarks I have 3-4 years ago won't even compile today. a large chunk of projects from 2010 still work. Including mine I wrote a decade ago as a newbie js junkie.

Why ? Dependencies.