Great video! The current stacks like Next.js and Prisma feel too abstract-it's refreshing to see everything work with basic HTTP server, raw SQL and scanners, and native HTML form method!
@DaviMartins993 ай бұрын
Great video, cdruc! I've been dabbling with Go for the past few weeks, but I have not touched the HTTP side of it so far, still getting used to the syntax, concurrency and stdlib modules/functions. If you have some time, I got a few questions: 1. Is using the internal HTTP package and basically implementing everything from scratch the professional way of building HTTP services in Go? I have seen people from the Go community advising against pulling externals libraries. 2. As of the final state of the application, how testable are the endpoints? 3. And finally, can you share some libraries that you're always pulling in Go projects?
@cdruc3 ай бұрын
Thanks! To be honest I'm a Go newbie myself - so I'm not in a position to recommend *any* package right now. From what I understand, the net/http library wasn't that great in the past (no way to specify the request method, no named parameters, etc) - and that's why people turned to things like gin, chi, *whatever*. Yes, the Go community is mostly against using packages. Everybody glorifies the stdlib - which is indeed, great (but probably not THAT great to be outraged when someone asks about libraries lol). Right now I try to build things using *only* the stdlib but just because "I want to do it myself so I can learn more/better/faster", not because "uSiNg PaCkAgEs Is BaD". Basic testing seems nice but haven't really delved into HTTP testing (doesn't look fun though, lots of boilerplate needed). Good luck with your learnings!
@DaviMartins993 ай бұрын
@@cdruc thanks a lot, very insightful :)
@othmanalmahdy24 күн бұрын
a great video but i have a problem the html dose not render the posts and i loged the posts before sending them to html and there is posts avilable but no data to render ?
@cdruc23 күн бұрын
that's weird if you send me a repo link, I'll gladly have a look!
@LynxIo-wr4ulАй бұрын
Is really the Golang + tmpl + htmx stack production safe? I see building for example a blog, its ok specially if you use Hugo framework. But what about middle size apps, such as ecommerce or a learning platform? Thank you again :D
@cdrucАй бұрын
no idea tbh. I haven't used htmx at all. Looks cool but I don't think it's suitable for larger apps. Again, I haven't used htmx so my opinion is of no value. The "stack" i'm playing with right now is a monolith golang + react&react-router - really happy with it.
@LynxIo-wr4ulАй бұрын
@@cdruc Thank you very much. Really appreciate your answer. I was also looking at that stack. I will give it a try. Thanks again !
@jefferymuter4659Ай бұрын
I use that stack in big prod sites, no issues. I have no clue why people talk about it not being a prod stack. But it works fine at scale for us.
@zemorangoАй бұрын
Nice tutorial but I'm getting error : app.routes undefined (type app has no field or method routes)
@cdrucАй бұрын
ensure that the routes function has the app *app as the receiver and that they are defined under the same “main” package
@Juikun6 күн бұрын
what is timmy generate?
@cdruc5 күн бұрын
just me making fun of chatgippidy before it comes and takes my job
@karlson28042 ай бұрын
Way people say Go Eaear and better there is not a good structure and OOP for me as laravel dev for now it's all confusing.
@cdruc2 ай бұрын
idk man, i've been playing with it for months now. initially i was put off by the lack of features because *everything* is WAY harder to build with go. but the benefit is: you are forced to understand what it is that you are actually doing. and that's a massive benefit because it translates well across *any* language. Laravel is untouchable in terms of productivity - there's NOTHING like it. But that productivity comes with a cost: you tend to understand less/not care about what's happening behind the scenes - you just see things working. magic! And that's totally OK if you're *knowingly* willing to pay that cost. Golang: you get nothing. You have to build it yourself. And that's the beauty of it.
@Juan-Chan3 ай бұрын
Very informative thanks! what's the VS Code database extension in kzbin.info/www/bejne/p567o4yQltuEf8U edit: found: it's qwtel.sqlite-viewer