- 83
- 164 111
Web Dev Fuel
Portugal
เข้าร่วมเมื่อ 22 ก.ค. 2021
วีดีโอ
Go & HTMX Data Dashboard - Form & Validation
มุมมอง 39928 วันที่ผ่านมา
Go & HTMX Data Dashboard - Form & Validation
Go & HTMX Data Dashboard - Live WebSocket Notifications
มุมมอง 683หลายเดือนก่อน
Go & HTMX Data Dashboard - Live WebSocket Notifications
Always punch above your weight as a web dev
มุมมอง 3293 หลายเดือนก่อน
Always punch above your weight as a web dev
Go, Templ and Alpine.js - Dropdown Component
มุมมอง 3563 หลายเดือนก่อน
Go, Templ and Alpine.js - Dropdown Component
HTMX, Alpine.js and Go - Toast Notifications
มุมมอง 6275 หลายเดือนก่อน
HTMX, Alpine.js and Go - Toast Notifications
Go SaaS API Third Party Integration (#2 - Database, Field Values, Get Tags by Integration ID)
มุมมอง 13911 หลายเดือนก่อน
Go SaaS API Third Party Integration (#2 - Database, Field Values, Get Tags by Integration ID)
Go SaaS API Third Party Integration (#1 - HTTP Server, Routing, Integrations Interface)
มุมมอง 36711 หลายเดือนก่อน
Go SaaS API Third Party Integration (#1 - HTTP Server, Routing, Integrations Interface)
Go SQL Comparison (squirrel, raw queries, sqlc and sqlx)
มุมมอง 8Kปีที่แล้ว
Go SQL Comparison (squirrel, raw queries, sqlc and sqlx)
HTMX Go Todo List Application (#8 - Trigger and SortableJS)
มุมมอง 1.9Kปีที่แล้ว
HTMX Go Todo List Application (#8 - Trigger and SortableJS)
HTMX Go Todo List Application (#7 - If Else and Swap Target)
มุมมอง 1Kปีที่แล้ว
HTMX Go Todo List Application (#7 - If Else and Swap Target)
Why wouldn't you use json instead?
I'm not sure what you're asking. Why not use a framework and send/recieve JSON?
@ yes. The web is based on json, not HTML. You shouldn't send html over the wire like it's the 90s
Returning JSON has been popular for a while, that's true. But it doesn't mean it's the best approach necessarily. Returning HTML is more performant, since we're always returning excactly what needs to be returned, business logic is not duplicated, since we don't have to write the logic on the backend and frontend (e.g. to hide or show a button based on permissions). I might do a longer video explaining all pros/cons. But if you're comfortable with JSON and prefer it, just use that, they're just tools at the end of the day! 😊
Linux is crap just use Windows
I moved into Linux and had no problem ever since
the majority of the world's devices run on linux, that doesn't sound like crap to me
@aratof18 headlessy yes..
👍
Golden advice 🔥👍
For sure Go concurrency model is one of the best out there - it is simple yet effective. Would love to see a Go concurrency video made by you especially in the context of web applications coupled with your amazing style of teaching!
Great suggestion! There is already a video about it, "Go & HTMX Data Dashboard - Live WebSocket Notifications", but I'll be making more at the start of 2025. Thanks for the support!
hey I have a request please create any sort of web app something with golang and htmx showcasing all the stuff that is required to build any sort fo web app with htmx and go for ex an ecomm with dashoboard rbac i know its a lot please do consider my request.
Your golang videos are too helpful thanks for sharing.
Thank you, glad you like them!
Great videos! The cropping is looking much better these days. Do you have courses?
Thanks, glad you've noticed the improvements! Yes, I have a course, HTMX Go SaaS Blueprint. There's a link to it on most "regular" videos about HTMX or Go.
Actually: JavaScript for the front end and Java For the backend. Reason Java is more mature than Go, has has bigger community, is proven track record. Is a C style language with similar syntax to JavaScript, witch will make understanding other C style languages easier.
You deserve many many more views and subscribers, my friend! Thank you for being here and keep up doing the great work!
Thank you so much for your kind works my friend! Appreciate your support!
Hi, just wanted to say that somehow I bumped up on this video (thanks YT algo!) and I really appreciate the time and effort you put into these videos! Your approach to teaching Golang + HTMX + templ is amazing!
Glad the algo is showing the videos to more people. Thanks for the support and kind words!
All the complexity that doesn't live in the language lives in your codebase.
"C was created for inexperienced developers, we should go back to raw-dogging hex into memory" - said no-one ever (i hope) bc you could say the same thing about ASM then... "Java has too much boilerplate code" - i hear that a lot, and also think that, bc it already is a pretty high-level abstraction with its unique selling point being irrelevant in todays landscape (portability argument is gone, only relevant in android i guess) "C++ has too many features to wrap your head around" - yes, thats why Go was created in the first place Just a couple of quick thoughts that make those initial criticisms invalid for me. Go may not be the best language ever, but it certainly has value in everything that has a web-backend. Go tooling is great, Go-written tools are great - it's just a language with no fancy extras that actually makes you get sh*t done instead of thinking about optimizations or patterns all the time, which also has it's place and time... but as long as people are writing backends in Python there's hardly an argument for it here. Just my 2 cents.
Thanks for sharing your thoughts!
can you make a playlist for the go + HTMX ??
There's already a playlist for that. You should be able to find it on the channel page, let me know if you can't
very interesting. Could you cover app deployment in Go?
Thanks for the idea, I'll try to release it soon!
I want to preface this by saying that your videos have helped me a lot as a beginner and I think you are awesome! ⭐ As a beginner I find that live coding gives us a better understanding, also we get to see the whole process and how one would go about solving those. That being said, I understand that the videos would have been really long. ps. loved the course!
Thank you so much for your kind words, glad the content has been helping you! I'll give that style of videos a try in the near future, but I'm still getting the hang of recording/editing, so I don't know if I would be as focused and able to solve problems as well if I was doing them on-camera, on or offline. But I understand your point and agree, I also think it's great to see how someone solves problems!
So how to add a class when the button is sent or how to show “loading” instead of “add”?
Hi Emanuel! Great video! Itried following the steps but your repository is missing the static javascript files, could you update it please?
Love bro❤
Thanks my friend! I truly appreciate your support recently!
Why not to cast interface{} to data.User struct? hit.(data.User) ?
An interface{} is an unknown type but it always has an underlying type, so I'm almost sure that won't work. In this case Meilisearch returns a `map[string]interface {}`, so I thought it would just be easier to marshal and unmarshal. Maybe there's a better way but I haven't found it yet.
Thank you❤
Top notch info here. Thank you!
You are doing great things❤
Thank you so much!! Appreciate you support
What is the font you are using? Seams easy to read. Great tutorial, thanks!
I mean in vim. What is the font in vim.
Glad to know you've liked it! The font is Berkeley Mono
@@webdevfuel Thank you! I indeed like the video very much, pros/cons and, especially, comparison between oob/on puts everything into perspective. Imho much easier to comprehend anything if there are some connections drawn then if not.
If I was to use Go for HTML SSR and use Svelte(not kit) on the front end to hydrate it, would that work?
Yes, it's possible. You would need to have the Go backend call a Node.js server that renders Svelte to HTML and then hydrate it on the client. The templ documentation has a section called "Using React with templ", basically the same setup but with React.
Kind of mind blowing having never done this. Thank u good sir
Glad I could help!
using goqu with or without sqlx to write queries would get rid sql-injection not?
Yes! A query builder will avoid query injections, as will writing raw queries and binding them with arguments using the help of the driver package/pgx. SQL injection would only be a problem if the dev implemented something like fmt.Sprintf("SELECT * from users where email = %s;", email), instead of something like db.Query("SELECT * from users where email = $1;", email). Hope that clarifies it!
As far as I can understand, as a backend engineer trying to migrate to fullstack, they did not fully comprehend HTMX.
great content
Thanks, glad to know you enjoy it!
Love your content on Templ, but some of this video is cropped and I can’t see what your doing
Sorry, I'll try to improve that aspect of the Shorts in the future, thanks for the feedback!
That's a really awesome introduction to why you need to Go in your life. How can I contact you?
Thanks, I'm glad you found it helpful!
@@webdevfuel Where we can contact you?
Sorry, I missed that part of your comment. Just search for "Web Dev Fuel" on LinkedIn and shoot me a message there.
Feeling like an imposter after so much tutorials on angular and still feels like I know nothing
Depending on your goal, I would say try getting a bit out of your comfort zone and learn other frameworks, it will give you a better prespective and help you see where the fundementals are (and not only how do things in Angular). Also, try to build a project from start to finish in Angular without the help on any tutorials, that might also be great to help you gain confidence! Wish you luck my friend!
@@webdevfuel thanks so much man
One question, by using pnpm aren't you installing all the other libraries that come with node? And isn't that defeating the purpose of using Go with htmx to make the code light-weight?
As far as I'm aware, Vite will only include what's being imported in the input, so it strips down everything else (in this case, it should only include htmx). But more recently I've found it easier to just copy the minified js file from HTMX's CDN, since it's simpler. I would still do it this way if I wanted to add HTMX extensions though.
@@webdevfuel I'll build a project tonight and see how it goes, if so it's very interesting
@@arturfil Good luck with your project!
I hope you can organize your Go videos in playlists cause it will be easier to follow along.
To me, best thing about Go is that there is much less bloat built-in and hence less magic-driven-developement like in Java or C# which are kind of direct competitors of Go
Yes, totally agree with your point. I haven't tried Java at all, only C# for a while, and I felt I was just gluing packages. Some web devs seem to prefer it but it's not really my style either.
Yea exactly ! Meeting with java devs sucks because they’re so clueless without a specific framework and task to tie it to. With Go devs I can talk options with primitives and how they’re handled
Go is the best. My favorite.
Yes, my favourite language too at the moment no doubt about it!
Nice 👍 work mate
Thanks, appreciate your support!
I am debating myself between learning one of these two, nodejs path or go path. I feel stuck, Go is great because is compiled, but the verbosity is annoying, and repetitive. On the other hand NodeJs feels like it wasnt really meant to happen but they did it anyways.
I feel the exact same way, Go can be very verbose, but with code snippets in the editor is less annoying. I would say try to build a project in the two ecosystems and see what feels best for you. Until you give them a try it's hard to tell. I started with Node.js, and only later learned Go and loved it!
@@webdevfuelI am trying to choose a new career path because Laravel/PHP is not as in high demand as before. But Laravel makes you SO productive! I feel that is a step to change to go
Love this video. Every tech stack has its own pros and cons. This was informative. Much appretiated.
Thanks, appreciate your support! Yes, I hope it gave you a better understanding of when to choose each tech stack
The Video is 10/10. But there is something going on with the audio, a lot of reverb or bass or something
I'm so glad to know that, appreciate your support! I'll take a look at the audio issue and see if I can fix it, thanks for bringing it to my attention.
Nice vedio mate pls bring more vedios on Go
Thanks! I will post more content on Go for sure. Appreciate your support
Nice video mate!🫂
Thanks!! Glad you enjoyed it
Isn't it over abstraction? Why not just make default tailwind classes and pass templ.Attributes?
Yes, it can be, but it depends like most of the time 😄 I think it's most important to think about a project's needs. Sometimes buttons are always going to look the same and it's a better trade-off to go down an abstraction level for 1 or 2 buttons from 100s in a web app, than to repeat those classes across the code base. Again, this is not a one size fits all solution and your point is totally valid and an important thing to think about! Thanks for your feedback!
Great video, thank you! However, to be honest, this isn't infinite scroll-it's just a 'load more' button. Infinite scroll doesn't require clicking or a button at all.
hi, thank you for your videos. Can I ask which app you are using to draw arrows on your screen?
Hey. Of course, it's ScreenBrush. I always have it in "Ghost Mode", so I can use the Fn key to enable the arrow tool. Appreciate your support! 😊
Summary: 3-Steps to working with Phoenix Pubsub. 1. Broadcast the message using `Phoenix.Pubsub.broadcast/2 function 2. In liveview, mount function, subscribe to the topic using AppWeb.Endpoint.subscribe("topic_name") 3. In the same liveview, add the `handle_info/2` function to handle the event. I have been missing step 2.
Hi Web Dev ! I have completed this tutorial, I want to say Thank you so much, I didn't know anything about htmx before, through your series, I learned more about how they work with Golang. I wish you good health and success!
Thank you, I appreciate your kinds words! I'm really glad the series helped you with learning HTMX and Go 😊 Wish you all the best too!
How about giving instructions on how to build and run the GitHub project in the Read-Me document. Thanks.
To generate the Tailwind CSS file run: npm run tailwindcss To run the Go file: go run *.go
Thanks for the heads-up! I'll update the repo with the set up steps.
You can use air to run everything at once, including tailwind, templ and go, I've updated the repo, you can check it out :) thanks again for the idea
❤❤❤🎉🎉🎉
Hi there, your content is awesome, but it would be better if you created a playlist for each tutorial series, I see you have different coding projects and it would be great to have them in their own playlist.
Glad to know you like the content! Thank you for idea!