Комментарии:
I hope you all enjoyed this video!
I love Go and I love all the Go backend services.
If you enjoyed this video - please consider liking and subscribing. It means the world to me :)
I agree 100%. I used GIN to build a full webapp not just an API - the difference between GIN and the standard library is just cleaner route signatures, the neat console log and just a few minor "goodies".
I normally use Laravel, which is super bloated but it does come with some nice features out of the box: sessions, csrf tokens, queues. I had to implement these on my own or use other libraries - its just a bit annoying to build the plumbing essentials but overall my project is lean and clean.
As someone migrating to Go, the biggest problem I see in community is not over-engineering, but under-engineering.
A lot of Go developers try to build everything from scratch, which increses the lead time of projects, specially if you work with microservices.
And every new thing you need, you need to build by yourself. What's wrong with using libraries and frameworks? Answer: nothing, it's about choosing your fights. How many security breachs are we deploying just for the sake of "use the std lib".
Under-engineering is a problem just as big as over-engineering.
But sure, let's be purists, what could go wrong? zzzzzz
That's true, I make mainly backend applications with typescript and node. And for my "degree" (IDK how to say that but I mean that I'm still studying) we are using java and OMG I love the standard library of go and their type system design. The "low level" control that go gives to you for some things. Their simplicity and the tools that come with the language is amazing. Personally I use fiber but because I have chosen to work with it thanks to the "Express inspired" tag, and it works for me and I learned how to use it, so I will keep using it.
ОтветитьI've used goa a lot at work, but I would always stick to the standard library for a hobby project
Ответитьthere is something real about frameworks
If you pay close attention to them and how they work,
you forget to become a real programmer in your language,
for the loss of time that this requires.
It is better to learn the language well and make your own environment.
Still found Fiber the best and fastest...
ОтветитьUsed Gin, would use it again. Reminds me of Express, and to me Express is almost perfect backend framework :)
ОтветитьLike no one ever was...
ОтветитьAll of them are just routers with some middleware functionality and some of them use "framework" keyword just because of newcomers coming from JavaScript :)
Ответитьgreat video! go is robust and solid by yourself!
ОтветитьAt this rate, you should build your own backend framework to compete
ОтветитьI really like chi, and yes! it's the closest to the standard library
ОтветитьI will consider go if you use different photo for the thumbnails.
ОтветитьI really like axum
ОтветитьHey Melkey. Might be out of context for this particular video, but can do a video showcasing how and when you use queues, tools like rabbitmq in Golang (programming in general)? 🥹
ОтветитьOnce you've built a CRUD app with the stdlib you'll see that these routers don't really offer much outside of a sprinkle of syntactic sugar. That isn't to say you shouldn't use them, but I think it's well worth a few hours using only the stdllib and seeing what you can do with it (everything).
ОтветитьTried all of those and also iris. I always come back to gin. There's smth really neat about that library
ОтветитьI like go's extensive standard library but I still believe frameworks is making developers life easier. They abstract things and help you to move faster. when you are writing your own saas application (depending on domain) most of the time you are not interested whats going on under the hood you are interested how fast I can move my mvp and do marketting etc
ОтветитьI’m enjoying go ent framework. Have you taken a look at it?
ОтветитьThese were great points, but GoChi sounds like a DragonBall character so it's obviously better.
Ответитьin most cases, Fiber is more than enough. crazy fast and easy to learn and use. 🚀
ОтветитьSurpriesed gorilla/mux isn't here. Especially since it's being maintained again.
ОтветитьTo be fair, I stopped caring about frameworks and their "wars". Until they are well maintained, easy to use and follow the "standard" pattern (so I don't spend more time to learn it, rather implement it from zero) I'm down to any of them... Oh, almost forgot! Have a proper jwt handling system! The only thing that matters for me, if I don't have to touch the ready code in the following few months for the fault of the framework.
ОтветитьIf I’m not using the std library with mux routing, I just gin.
I’m moving toward htmx and gin’s ShouldBind method does some beautiful field validation for form data.
Fiber, then used echo primarily cause of pocketbase but will have to get stdlib a shot on my next go around.
ОтветитьCan we just stop messing with this dead language
ОтветитьGodamn son
ОтветитьVulpix really made me giggle, not gonna lie.
ОтветитьI use chi. I secretly think videos like this are slight unhelpful bc someone coming from python,java, js really should be given an answer... strengths of each...and then you should explain why it doesn't matter and how thin they are and why go is different.... I say this because I don't think the std lib message lands until they've dived into programming go, usually using chi or something...Just my opinion - great vid!
Edit: and i only say this bc i just lived this lol
All my homies use standard library
ОтветитьGO TIME
ОтветитьGOATED video
ОтветитьGorilla Mux ?? Std>Gorilla>= Chi >others
ОтветитьI started javascript and php vanilla.
I believe with both, it is easily possible to write evertyhing you want with it.
I mean... the frameworks and libraries are build using that same language.....
I see a lot of people using packages, frameworks or libraries, and not understanding how they work under the hood
As soon as you create a vanilla construct, they look at you like it's dirty, ugly code, but they dont see that the tools they are using function the exact same way, but prettified with a wrapper function.
I like go. the ease on how you can set up allmost every tool you like is great( Although... string manipulation is still a challenging concept in golang for me :P)
The most important things are already under your fingertips, accessible without any configuring a framework or bundler.
With some extra lines of code, you can easy write the "luxery" that frameworks offer you.
I don't know about the go frameworks but this is the best go channel.
ОтветитьCool video <3
ОтветитьYessssir
ОтветитьThe node devs are bringing their "javascript problem" with them to go frameworks with Fiber and Echo. Just use chi (which actually uses the std lib handler interface) and learn the go paradigms.
ОтветитьI’m the 5 th person to comment here
And I guess using standard go is annoying for me bc I came from php and js backend 😂😂
Hey Melky, perfect timing. Do you know how to deploy a golang backend that uses go fiber on vercel serverless? I can't find any example online
ОтветитьHoly shit I did so much PHP is this video real or not
Ответить