So yes I was having ALL the fun doing front end code with Typescript and SvelteKit but I have decided to try and play with something that is the compl

I'm a fickle soul

submited by
Style Pass
2024-05-05 01:00:04

So yes I was having ALL the fun doing front end code with Typescript and SvelteKit but I have decided to try and play with something that is the complete 180 from not only SPA and Client / Server frontends but a solution where I write minimal JavaScript.

GOing with the GoTH stack (Go, Templ and HTMX) It's a 100% Go solution for not only your backend REST code but also for the creation of your HTML templates / components using the Templ framework. Interactivity is provided from HTMX which is a HATEOAS (Hypermedia as the engine of application state) framework where you provide Server-side rendered html direct to the browser and HTMX can do dynamic replacement of the DOM and other stuff with just some HTMX attributes on your HTML elements - Use JavaScript so I write less JavaScript.

Go serves as the backbone of the stack, offering me type safety, performance, and familiarity, given my years with the language. Its versatility makes it a natural choice for backend development tasks.

Leave a Comment