News for hackers. Stuff that matters.
Re:HTMx by throwaway2037 on Friday May 26, 2023 @01:32AM (#36080368)
This is a great post. I'm not a web dev myself, but I have a couple on my team. I criminally underrated the challenge of maintaining a complex web app. It is madness: endless incompatible, forced upgrades.

Real Question: Why does this ecosystem have this issue, but others have it less? For example: Why doesn't Python or Java have the same madness?

Please don't read the question as criticizing web dev / JavaScript / etc. My curiosity is genuine.

To be fair, it does feel like C++ is more maddening than Python or Java, but part of can be explained by (1) native code generation (build is way harder than languages that run in a VM) and (2) the insane complexity of the language which _traditionally_ made IDEs much weaker than other languages. MSFT Visual Studio and JetBrains CLion have come a long way. (I can already feel the HN pitchforks poking at me for these C++ comments!)

Re:HTMx by oaiey on Friday May 26, 2023 @01:51AM (#36080500)
Because the originals parts where broken. I am speaking of 90s JavaScript, the DOM/Browser API and the not so much "batteries included". They could neither get fixed without a standard by committee approach of the browser vendors.

So we started to compensate: end state: Typescript to fix JS, React/Angular/Svelte to fix DOM API and a npm package hell to have batteries included. And all of that bundles, compressed, etc to have a good download time.

Re:HTMx by owenpalmer on Friday May 26, 2023 @02:02AM (#36080566)
Yes. When JavaScript is your only option, the only solution to JavaScript is... more JavaScript :(
Re:HTMx by serallak on Friday May 26, 2023 @02:54AM (#36080909)
Seems like the old joke about XML:

"XML is like violence: if it doesn't solve your problem, you're not using enough of it."