This is exactly why I love HTMX [1] in combination with PicoCSS[2]. HTMX is just the regular html elements with ajax extensions built into the tags (it is a js library currently but they plan on lobbying to have these as default functionalities with HTML in the future) and picoCSS also works without classes so you are "trained" to use the semantic tags for the page to be rendered beautifully
Re:HTML Web Components: An Example
by phero_cnstrcts on Saturday November 18, 2023 @07:13AM
(#38318624)
What I don’t like about htmx is that you have html spread over two very different places - front end and backend. On the backend side you might not even have syntax highlighting.
Re:HTML Web Components: An Example
by politelemon on Friday November 17, 2023 @12:52PM
(#38307210)
It's not that common sense gets lost, I think what happens is the lessons keep getting forgotten as the new generation enter the fold, and reinvent old concepts ("everything old is new again").
As an industry we don't do a great job of persisting lessons learned. Not sure how we could, I've got no answers, just an observation of what happens.
Re:HTML Web Components: An Example
by marcosdumay on Friday November 17, 2023 @03:51PM
(#38310087)
If you use the principle of least power to make fundamental architectural decisions, you'll get stuck, very soon and very often when the requirements change.
People used to understand that too. But limited functionality frameworks became too enticing to ignore as a user (of the framework), and to sell as a developer. That lead the way into the stuff we have today, that are extendable limited functionality frameworks where the amount of functionality is so large that one hopes never to exceed it.
My impression is that some common sense was lost too along the way. Remember the Rule of the Least Power, anyone?
[0]: https://www.w3.org/2001/tag/doc/leastPower.html