Why HTMX and Golang? The answer might surprise you...

  Рет қаралды 15,831

Flo Woelki

Flo Woelki

Күн бұрын

Пікірлер: 32
@iskariotski
@iskariotski 8 ай бұрын
dont parse templates in runtime, parse them during init instead
@FloWoelki
@FloWoelki 8 ай бұрын
yeah I 100% agree. it was a mistake on my end! to parse it over and over again whenever a request was made is just not efficient. but this was just a simple demonstration of using HTMX with Go. edit: I've pinned your comment so that everyone can see it :)
@ransomware9086
@ransomware9086 8 ай бұрын
@@FloWoelki no. don't use init, since it adds a side effect to import behaviour. create your own init routine and do it in there
@FloWoelki
@FloWoelki 8 ай бұрын
@@ransomware9086 thank you for the comment. I think parsing the template in the request is always bad for performance, it's alright for dev purposes. but, for production, the template should be fixed and only the data should change.
@merfkit
@merfkit 8 ай бұрын
Thanks, very good and understandable guide👍Hope to see more rust/go videos in the future
@FloWoelki
@FloWoelki 8 ай бұрын
thank you so much! there will be definitely more content about Rust and Go!
@HarmonicaTool
@HarmonicaTool 5 ай бұрын
Thank you and please. Please make more videos on how to use Golang and htmx for usefull webapps or even just to use htmx instead of a local GUI. It is hard to find a beginner friendly route to start.
@siya.abc123
@siya.abc123 8 ай бұрын
All htmx tutorials are simple. Why no one wants to show how to build production grade apps? Styling, components etc
@FloWoelki
@FloWoelki 8 ай бұрын
I could do it ;) do you have anything specific in mind? like creating a todo list and then making it production-ready and deploying it (I think dockerising the application should be feasible enough?)?
@nanonkay5669
@nanonkay5669 7 ай бұрын
@@FloWoelki Yes that would be awesome
@GreatTaiwan
@GreatTaiwan 4 ай бұрын
@@FloWoelki none of what you mentioned is actually related to Go or HTMX this is still a ToDo with better devOps tools around it something other than ToDo I think is required, look at making a medical image reading project, a game maybe ...etc something along the lines of having many domains and components to see how this can actually scale or will be complete rewrite
@theseangle
@theseangle 3 ай бұрын
​@@GreatTaiwan todo is the perfect app actually. It can have authorization, multiple views (todo list, details view, authorization pages, profile pages), protected routes, utilize HTTP headers, persistence via database, Redis, dynamic assets like images (-> S3 buckets), mounting an SPA to a part of a specific heavily interactive page, I could go on and on. - Medical imaging? Nobody would watch that. - Game? Nothing relevant to htmx/go, just Javascript and a lot of programming patterns. - An over-engineered to-do app? Heck yeah!
@theseangle
@theseangle 3 ай бұрын
​@@FloWoelkiI hope you read my reply to @GreatTaiwan
@gelismissuriyeli4440
@gelismissuriyeli4440 5 ай бұрын
Thank you for this well-made video. My question is, would it be possible to still inject the data in the templates (that easy) if we follow the `Separation of Concern` paradigm and have the BE and FE apps run in separate environments say.. Docker containers for example?
@LourensRolograaf
@LourensRolograaf 4 ай бұрын
On 8:12 it says "GO = HTMX Demo" and "{{.Message}}" on my localhost:8080 page. Something changed since I am already using Go version 1.23 maybe? cannot find the mistake in my code
@phat80
@phat80 3 ай бұрын
Don’t see the reason to use htmx. All what was shown can be easily made with simple JS with no need to learn htmx syntax.
@gigalodon14
@gigalodon14 Ай бұрын
Htmx is specifically for people who dont like interacting with javascript
@phat80
@phat80 Ай бұрын
@ if you’re involved in web dev you just can’t don’t like JS or probably you should change the job.
@gigalodon14
@gigalodon14 Ай бұрын
@ Nah you can write your backend code in any single language and javascript (especially without typescript) just sucks. So if you need to do some frontend stuff for it its much better than getting a full-front framework like React or using in-line javascript
@phat80
@phat80 Ай бұрын
@@gigalodon14 Anyway JS is a must-have knowledge and you can’t escape it in web dev. It’s much easier if you like it.
@kingsgambit9284
@kingsgambit9284 8 ай бұрын
Wow 😮
@sergeiudison6534
@sergeiudison6534 3 ай бұрын
Thank you very much!❤
@FloWoelki
@FloWoelki 3 ай бұрын
You're welcome 😊
@DougLopes
@DougLopes 4 ай бұрын
Nice video, just the abbreviated variable names make me nuts.🤣🤣🤣
@FloWoelki
@FloWoelki 4 ай бұрын
Fair point :D and thank you!
@InsertGreatChannelName
@InsertGreatChannelName Ай бұрын
Kuss auf die Nuss
@grimonce
@grimonce 4 ай бұрын
Had me until this != font heresy.
@FloWoelki
@FloWoelki 4 ай бұрын
Fair point :D I've also removed this for my personal use and future videos.
@theseangle
@theseangle 3 ай бұрын
It's called ligatures
@grimonce
@grimonce 3 ай бұрын
@@theseangle not sure if that's the case. I'd call it inverse ligature or something between. There are actually two signs that are required by the language formal syntax, they are not "joined", only displayed as such to the user of the plugin. While a ligature is actaully a joint sign... so no? Not sure what you're aiming at anyway.
This is your last video about Golang Structs!
15:57
Flo Woelki
Рет қаралды 10 М.
Introducing The GoTTH Stack - Go, Tailwind CSS, Templ & HTMX
28:29
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Unlocking Cybersecurity: CEHv13 Module 02 Part 03 Explained
1:26:20
Golang: The Last Interface Explanation You'll Ever Need
17:58
Flo Woelki
Рет қаралды 25 М.
Is HTMX a Joke??
32:15
Syntax
Рет қаралды 24 М.
I built a real HTTP sever in ARM assembly in under 200 lines
22:34
The Simplest Tech Stack
9:38
Awesome
Рет қаралды 141 М.
The State of HTMX (2024)
15:36
HAMY LABS
Рет қаралды 9 М.
From React To HTMX
40:01
ThePrimeTime
Рет қаралды 343 М.
Level Up Your Golang: 5 Concepts You Need to know
19:22
Flo Woelki
Рет қаралды 14 М.
HTMX for Impatient Devs
8:33
Isaac Harris-Holt
Рет қаралды 62 М.
Creating custom struct tags in Golang is awesome!
24:42
Flo Woelki
Рет қаралды 10 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН