This Golang + HTMX Trick Is Beyond Amazing

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


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

just wanna say i love your videos! go really become popular in recent times

gradientO
Автор

So polling with htmx, basically? Server side events would be a greater, lightweight alternative

davidhinojosa
Автор

Simple and efficient, love it! Thanks a lot Anthony! Great templ / htmx content with a lot of value! Thanks for sharing :)

flo
Автор

Would you recommend htmx if you have one backend that needs multiple frontends? it doesn't seem like the right option for that case.

kowalski
Автор

why not server side events? I think it's more appropriate

lazyhrse
Автор

But, what happened if aI refresh the browser when the requests is processing, we lost the state, right?

ncpeaksean
Автор

Anthony, how is htmx with animations?

GeorgeDicu-hsyp
Автор

"without any yavascript involved" - I'm in

manfrombritain
Автор

So for my understanding: you are calling a imgGenerateAPI(if thats openAI stuff, stableDiffusion, LeonardoAI, etc. is beside the point), then calling that same api every 3 sec for an update until its done? Is there a better way to implement this with say a webhook or something the like?

TheWatshingMan
Автор

Man I used this stack on a recent MVP project. I'm not really sure how I feel about it to be honest. I found I still had to write a lot of js for client side animations, models, etc. And with hx-boost, there was an added layer of complexity there that felt a bit clunky. But at the same time, I love having so much of my logic server side in Go. I can't wait for WASM to mature and give us a complete browser api to work with in Go (or any other statically typed language). That'll be the day. Awesome content Anthony!

jaymason
Автор

Why don't you just use hx-trigger="every 3s" and then return non-200 status code if the image is not yet available?

mikav
Автор

If I use Faas like cloud functions or aws lambda this effect doesn't increase my cost with this requests ?

vetorial_data_custom
Автор

Hey Anthony, what do you think about cross-site scripting vulnerability with htmx? Or do you think its easily avoidable?

CobravsPanda
Автор

Have you considered trying this with HTTP long polling?

tshk
Автор

Hi Anthony. Can you explain RabbitMQ in a nice way?

YmamHudaynazarow-es
Автор

Does anyone knows which LLM he is using to generate images?

ArthurxAriza
Автор

Why didn't you just use hx-indicator?

iamtheprotocol
Автор

I really want your course, but I can't buy it because of my country, you know!

javadahmadian
Автор

lol... Is this sports clothes in Scotland Tony?

pseabrook
Автор

Sir get your paid course. Complete backend with golang

FaheemAfridi-nn
visit shbcf.ru