3 ms·
Mostly for building typed web UIs in Go – instead of using html/template, which isn’t typed and feels oldschool. templ makes Go feel way more modern for fronten
by axadrn 1y ago
Mostly for building typed web UIs in Go – instead of using html/template, which isn’t typed and feels oldschool. templ makes Go feel way more modern for frontend work.
- anonzzzies 1y agoI know I am an old angry guy but I really don't want things to 'feel' (not sure what that even is) more modern; I have projects that bring me millions a year which are running for over 2 decades now and this kind of 'modern' is just obsolete next year. I like profit and not being bothered by updates every 5 seconds. I have a simple stack, my saas apps are violently fast and they run for decades without me touching anything but some bugs/features. The modern feel is not required and in fact detrimental to just making bucketloads of business value and company wealth imho. But then again, we never had investors, so I don't know how it feels to burn other people's money.
- axadrn 1y agoTotally fair – stable, fast, boring tech is often the best kind of tech. templ’s more for folks who want to stay in Go but need a smoother frontend experience for modern UI needs.
- anonzzzies 1y agoYep, that makes sense. I do prefer Go to TS really as I love typesystems but TS types often are completely unreadable. I am a Haskell guy and not entirely sure how they managed to make TS types this line noisy and, frankly, a struggle.
- axadrn 1y agoIs TS actually a thing? ^^
- bananapub 1y agoThese are weird things to complain about for templ - it’s very boring and stable and it just compiles to very boring Go code while 1) providing type safety for your templates and 2) being less annoying to compose things than template.html. It definitely doesn’t feel like JSX or any other modern/exciting thing to me.
- axadrn 1y agoTHIS actually!
- anonzzzies 1y agoThe author and you are good at convincing me to use it. thanks and thats not sarcasm.
- axadrn 1y agoAppreciate that! Always happy to find common ground.
- thestepafter 1y agoCurious about your stack that you are using if you don’t mind sharing.