Why We Switched From Svelte Kit To Golang + HTMX

preview_player
Показать описание


SUBSCRIBE OR NO MARGARITAS
╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝
Рекомендации по теме
Комментарии
Автор

I would love a Go-HTMX-Templ video, that combination sounds so good

zema
Автор

Funny how development trends come and go and repeat themselves. This looks exactly how C# developers were building web applications 10+ years ago with MVC/Razor syntax.

reikooters
Автор

Wow, that's the coolest thing I've seen in the past year! Definitely a thumbs up for this. I hope you record the full setup for this. And please show hot reload with GoAir.

IvanArsenev-xw
Автор

That sounds very promising, I'd love a detailed follow-up for HTMX x Golang tuts more in Anthdm style!

uzair
Автор

For me, with tools like svelte, the state management across pages and components is the biggest sell. I’m interested to see how your managing complex state here; especially if and when state is mutated by something client side such as a drag and drop event.

jaymason
Автор

I recently dabbled into templ and instantly knew that this + htmx is just going to be awesome. Great to hear that a veteran agrees :)

pldcanfly
Автор

Kind of interesting seeing how software development has come full circle and now what PHP did for decades before SPA even became a thing is now once again considered to be a good practice

bionic_batman
Автор

How long until you switch to the Next New Thing? I give it 18 months max.

illegalsmirf
Автор

"we have sveltekit in the frontend, golang in the backend" -> uhm isn't sveltekit a backend too? Or did you mean svelte?

sledgex
Автор

Love the HTMX Go stack!!! Some HTMX tutorials would be awesome.

bigtymer
Автор

Great, this looks promising. And by the way thx for the bigger font size in the code, now I can watch your videos from my mobile.

brigadafitness
Автор

Totally! I would like to see ASAP a tutorial end to end on using TEMPL + GO and Wails if possible. Much appreciated!

theretroman
Автор

did you say you had Sveltekit (Sk) + nextjs + golang to start with and you dropped Sk/nextjs because all you were using Sk for was rendering html and htmx enabled that without the overhead of using Sk? If i got that correct then it wasnt so much a move from Sk to golang + htmx as replacing the Sk rendering with htmx? Could Sk alone not have done what you needed or golang was a must? Did really get the "how" you did it but would definitely like to see this. I get the dev time saved but was that at a performance expense? It seems htmx is essentially state management which is what Sk is all about, with performance.

pickavana
Автор

I would love to see an in depth with templ and htmx

nathanaelcunningham
Автор

I started using the same stack a couple weeks ago I absolutely love it. Templ / Echo / HTMx are such a joy to work with. I would be very interested in a in depth video showing how you setup your dev env to run echo / compile templ / tailwind / typescript. I have hacked up a half-ass solution for that, it works but it's not ideal

x
Автор

yes, please do an in-depth video on how you set this up, I'm sick of duplicating state & types just for the templating capabilities that JSX or Svelte offers, plus when it's a one or two man show, no point in having a separate backend & frontend

Madmaniac
Автор

Totally new to Go but your sheer enthusiasm persuaded me to give this stack a try.

theodoreivanov
Автор

Hey Anthony, good video! I've been using HTMX & Go as well for my projects. I like your approach here, but I think the more idiomatic approach to handle form errors in HTMX is to set up a <div id="formErrors"/> in your form, then <form hx-post="/sign-in" hx-target-40*="#formErrors">. In this way, your sign in handler can simple return the error component in case of errors :) The rest of the form component will remain unchanged so users don't lose their input

peteredmonds
Автор

Very nice! A video on how you guys set templ up would be awesome.

davidhinojosa
Автор

I want to see you make a follow up video with a tutorial on how to set that up.

user_v
welcome to shbcf.ru