News for hackers. Stuff that matters.
Re:Ask HN: Why do you all think that Htmx is such a recent d... by anditherobot on Monday May 20, 2024 @04:52PM (#40420223)
Once upon a time, we crammed HTML, CSS, and JavaScript into single PHP files—easy and straightforward. But then, someone said, "Separate presentation from logic!" So we did.

Then someone said, "Sending HTML is old news; let's send JSON on the back end and reassemble everything with JavaScript." So we did.

Then someone said, "Why don't we put everything in a single file and call them components?" So we did.

Then someone said, "Why don't we push those components from the server instead?" So we did

Wait a minute???

Re:Ask HN: Why do you all think that Htmx is such a recent d... by shutupnerd0000 on Monday May 20, 2024 @05:52PM (#40420879)
The real issue here is the "so we did" part. Something something cargo cult lemmings.