News for hackers. Stuff that matters.
Re:Htmx Is the Future by duxup on Friday May 05, 2023 @12:00PM (#35831068)
I often work on an old ColdFusion application.

It's amusing that for a long time the response was "oh man that sounds terrible".

Now it is "oh hey that's server side rendered ... is it a new framework?".

The cycle continues. I end up writing all sorts of things and there are times when I'm working on one and think "this would be better as Y" and then on Y "oh man this should be Z". There are days where I just opt for using old ColdFusion... it is faster for somethings.

Really though there's so many advantages to different approaches, the important thing is to do the thing thoughtfully.

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.

Re:Htmx Is the Future by no_wizard on Friday May 05, 2023 @01:11PM (#35832237)
ActionScript is basically ES6 too isn't it?
Re:Htmx Is the Future by phpnode on Friday May 05, 2023 @01:21PM (#35832378)
No, it’s more like ES4 which was eventually abandoned and never became part of ecmascript
Re:Htmx Is the Future by courgette on Friday May 05, 2023 @04:03PM (#35834463)
Older than that, flash already received the apple coup de grace a little while ago when ES6 was release.
Re:Htmx Is the Future by mock-possum on Friday May 05, 2023 @04:52PM (#35835026)
AS3 was typed though, so maybe closer to Typescript.
Re:Htmx Is the Future by pengaru on Friday May 05, 2023 @01:23PM (#35832397)
> there are times when I'm working on one and think "this would be better as Y" and then on Y "oh man this should be Z".

How much of that is just a garden variety "grass is always greener on the other side" effect?

> the important thing is to do the thing thoughtfully.

And finish! Total losses are still total losses no matter how thoughtfully done.

Re:Htmx Is the Future by duxup on Friday May 05, 2023 @04:38PM (#35834862)
>How much of that is just a garden variety "grass is always greener on the other side" effect?

In my example not so much. I'm working in a number of frameworks, use them regularly, sometimes ColdFusion is just faster / better suited, sometimes some other system.

Re:Htmx Is the Future by ksec on Sunday May 07, 2023 @04:52AM (#35849317)
I often wonder if someday we could see WebObject or ColdFusion being open sourced.