logoalt Hacker News

skydhash11/08/20241 replyview on HN

The web spec is so complex because it serves different masters. You either making a web page, a web app, or some hybrid of the two. And there’s different constraints for each. And you will have to choose which subset to target if you were the one building that modern language.


Replies

jacoblambda11/08/2024

Yep. Again, I'm not looking for a perfect global solution.

Just some domain specific language for writing sane low-to-no-js web pages or parts of web pages without having to manually fiddle with HTML or CSS in any real amount.

Static site generators honestly get me a lot of the way there but those are unfortunately template based which means any significant customisation requires dealing with the HTML and CSS rather than being able to just describe the layout and behavior I want.

Honestly I'd just write the compiler/lang myself if I didn't hate frontend so much.