Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've generally agreed with this but found the UI (ie. HTML) story on the backend is utter shite. Namely it's usually been handled by templates which inevitably lead to ridiculously inconsistent UIs with so much redundancy. In contrast something like JSX is really good and makes building small components for reuse natural.

Fortunately there has been some change in this area. FastHTML is a batteries-included library for Python and there are numerous standalone HTML generation libraries that can be used with other frameworks like Django, e.g. htpy, htmy etc.

I've been using alpine on a static site and it's really quite impressive just how much of "the stuff you probably want js for" it covers. So much so that you can pretty much say "if you can't do it in alpine, maybe we shouldn't do it at all".



I am using Laravel Blade components which are effectively just fully server rendered templates in component style, so you get the benefit of that mental model.

Then you can just add Alpine as necessary.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: