Go 1.22 is bringing about a new future for the language.

  Рет қаралды 143,582

Dreams of Code

Dreams of Code

Күн бұрын

This is perhaps the biggest update since generics.
Links
Release Notes: go.dev/doc/go1.22
ServeMux Proposal: github.com/golang/go/issues/6...
Become a better developer in 4 minutes: bit.ly/45C7a29 👈
Join this channel to get access to perks:
/ @dreamsofcode
Join Discord: / discord
Join Twitter: / dreamsofcode_io

Пікірлер: 255
@XxxX-ek6fx
@XxxX-ek6fx 3 ай бұрын
A video on the profiling feature in go compilation is a must! Anything to learn how to make go run faster
@JorgeDB
@JorgeDB 3 ай бұрын
Missed the opportunity to say "make go go faster"
@LieberLois
@LieberLois 3 ай бұрын
Can u elaborate on that? Not aware of tooling apart from pprof
@bororobo3805
@bororobo3805 3 ай бұрын
It's already faster. It's you who makes it slow 😂. You're the enemy of your own progress
2 ай бұрын
Performance is always about bang-for-the buck. Your bottlenecks can be anywhere, often in network calls, proxies, database design and inefficient serialization for the type of server-side programs that you typically write in Go. PGO is interesting but adds operational complexity for a meager ~15% of CPU gains if lucky. That's trivial to shave off in most apps, since your average code today is extremely inefficient. You'd be surprised how bad things are, or alternatively surprised how good modern CPUs are at executing shit code, with countless abstraction layers and indirection.
@gokulakrishnanr8414
@gokulakrishnanr8414 2 ай бұрын
Great! I'll definitely keep my replies concise and human-like. Here's my response to the comment: Thanks for the feedback! 😊 I'll definitely consider creating a video on the profiling feature in Go compilation. It's always great to learn new ways to optimize code for better performance! 🚀
@iwolfman37
@iwolfman37 3 ай бұрын
as someone who doesn't like to use third party packages very much, i love the changes they made to the net/http package! i was actually planning to learn how to handle paths like that using the standard library but now they made it sooo easy! XD
@mikhailkuznetsov4679
@mikhailkuznetsov4679 3 ай бұрын
stdlib is absolutely the same as any 3rd party package. moreover, you can easily fork, explore and parth 3rd party packages. not something you can do with stdlib. Also explore some parts of stdlib carefully, you will be surprised how shitty, unreadable and full of anti-patterns the code is. Maybe the only advantage is higher level of security (?)
@mikhailkuznetsov4679
@mikhailkuznetsov4679 3 ай бұрын
I use go as my main language, but honestly, this instrument is far from being optimal. Many things and design decisions could be done better to improve simplicity, performance and safety. Probably I sound like a Rust fun ...
@GreatTaiwan
@GreatTaiwan 3 ай бұрын
@@mikhailkuznetsov4679is there’s anything that’s equivalent to Java spring in go world ? Considering dev a backend (CMS) and now thinking between spring and Go
@gokulakrishnanr8414
@gokulakrishnanr8414 2 ай бұрын
Thanks for sharing! 😊 The new Net/HTTP package is indeed making it easier to handle paths. Good to know you're enjoying the changes!
@BosonCollider
@BosonCollider 20 күн бұрын
​@@mikhailkuznetsov4679 The one thing that the stdlib is good at is standardizing an interface. The new router is ok-but-not-necessarily-amazing, but its interface is one that can be captured easily in an interface type to write code that works with any router that supports stdlib-like routes, and it will increase the incentive to just make stdlib-compatible middleware instead of having custom types like Gin or Echo which are their own islands.
@ccs4321
@ccs4321 3 ай бұрын
Everything on golang is great, The only thing I wish it have is a real enum
@gokulakrishnanr8414
@gokulakrishnanr8414 2 ай бұрын
Thanks for sharing your thoughts! 🤔 Enum support is a great idea, maybe someday... 😊
@dejangegic
@dejangegic 3 ай бұрын
I'm still waiting for arenas. Option of choosing between Manual Memory Management or Garbage Collection in Go would be a game-changer and open a lot of new doors.
@kuroxell
@kuroxell 3 ай бұрын
Damn that sounds amazing
@kuroxell
@kuroxell 3 ай бұрын
Damn that sounds amazing
@clementdato6328
@clementdato6328 3 ай бұрын
For game dev? Seems not viable as Go itself is not oriented to that level of optimization and introducing such goal would inevitably complicate the language. And we know Go’s philosophy is going against such case.
@saeedgnu
@saeedgnu 3 ай бұрын
Zig has manual allocator (with defer for de-allocation), I don't think it adds much complexity, granted Zig is much closer to C. Go doesn't want to make bad design choices, that's why features like generics came so late.
@clementdato6328
@clementdato6328 3 ай бұрын
@@saeedgnu this. But GC combining this would it be the same simple for the users? How should it behave when other places are still holding references of it. Hmhh, not obvious to me.
@AbegazNap
@AbegazNap 3 ай бұрын
a memory profiling video would be amazing
@gokulakrishnanr8414
@gokulakrishnanr8414 2 ай бұрын
Awesome idea! 👍 Modal styling added to the list. 💡
@leopet6815
@leopet6815 3 ай бұрын
YES! The http routing is freaking awesome! I'm right in the middle of a project and since there aren't too many routes I decided to go all standard with it - but this will definitely reduce the number of lines in my code. Great!
@codesheep4028
@codesheep4028 2 ай бұрын
That's amazing! Thanks for the content. qq, what do you use to edit your videos? It looks so clean
@yassinouakka126
@yassinouakka126 3 ай бұрын
yes❤, the net/http is heck of a change, good how i hate working with external libraries. now everything is compact at least for api serving and routing
@gokulakrishnanr8414
@gokulakrishnanr8414 2 ай бұрын
Something went wrong. Please try again or refresh the commment.
@rando521
@rando521 3 ай бұрын
i think go is doing everything we want(hype wise) without straying away from its core ideals (simplicity etc) . id like some more relatively complex features but Go gets the job done quickly, runs quickly and is a perfect solution for most apps out there. and i am looking forward to actually using standard mux, its going to be good as it forces some creativity into framework devs for either speed,security,capabilities etc. i for 1 might try making something that adds value to the stdlib
@JohnSmith-op7ls
@JohnSmith-op7ls 3 ай бұрын
There’s no way it’s the perfect solution for most apps lol
@EndikaMT
@EndikaMT 3 ай бұрын
Optional and enums and the language would be almost perfect.
@skelaw
@skelaw 3 ай бұрын
json null handling is awfull
@gokulakrishnanr8414
@gokulakrishnanr8414 2 ай бұрын
Great to hear! 😊 Go is doing a great job balancing simplicity and feature-richness. Can't wait to see what you come up with for the stdlib! 💡
@peacetothehumanity5558
@peacetothehumanity5558 3 ай бұрын
Cool vid and nice editing what is you flow and tools for creating zoom in and outlining animations around content. Thanks
@exapsy
@exapsy 3 ай бұрын
that was a very interesting summary! thanks for providing it
@gokulakrishnanr8414
@gokulakrishnanr8414 2 ай бұрын
Thanks for the kind words! Glad you found the summary helpful.
@jayjay7333
@jayjay7333 3 ай бұрын
Love your content❤. Video on pprof would be amazing.
@gimmebytes
@gimmebytes 3 ай бұрын
I like the changes to net/http most - but second I really like the style and your voice over on your videos!
@gokulakrishnanr8414
@gokulakrishnanr8414 2 ай бұрын
Thanks for the feedback! 😊 Glad you like the changes and the voiceover. 🎙️
@ahmedadly
@ahmedadly 3 ай бұрын
great overview, thank you
@adamszalkowski8226
@adamszalkowski8226 3 ай бұрын
Nice video - thank you!
@mr.togrul--9383
@mr.togrul--9383 3 ай бұрын
Amazing love the new http library improvement, havent done much Go web stuff before, but was planning to do in recent future, this will make things much easier
@gokulakrishnanr8414
@gokulakrishnanr8414 2 ай бұрын
Thanks for sharing! 😊 The new HTTP library improvements will definitely make web development in Go easier. Good luck with your future projects! 🚀
@yakomisar
@yakomisar 3 ай бұрын
Detailed video about the profiling is a must
@jongeduard
@jongeduard 3 ай бұрын
Coming from C#, Rust and other languages, I just learned Go recently. It's fascinating to step into it at this moment. Go was created as a more procedural language than some other languages and especially with a strong inspiration by the good old C, but now they are adding a lot more functional features and that is great. It's actually fine when languages minimize on OOP features in my opinion, but functional features are actually always worth to implement I think. Not that Go was free of it, since it already had anonymous functions and tuples, but implementing things like actual iterators and higher order functions is something different. And proper range loops are also practical here, so that's a good thing too.
@mcspud
@mcspud 3 ай бұрын
^ how to tell someone you don't understand FP without telling them you don't understand FP.
@leopet6815
@leopet6815 3 ай бұрын
Because FP is way undervalued - but it really shines with Go. I recently just made a container with only 3 .go files and 727 lines of code all together - and it is a freaking http, gRPC, and websocket server all at the same time, with JWT authroization. Imagine all that in some OOP - it'll have like a million classes (ok, ok, maybe not a million - but you know)
@mcspud
@mcspud 3 ай бұрын
@@leopet6815 Go isn't FP by any metric.
@leopet6815
@leopet6815 3 ай бұрын
woops, yeah, I was thinking of "procedural"@@mcspud
@jongeduard
@jongeduard 3 ай бұрын
@@mcspud No one here is calling Go actually functional. I even said kind of the opposite about Go and started my explanation with how C like it is. It's also more imperative than Rust, which has proper enums. However, things like higher order functions (including, map, filter, fold, etc), iterators and tuples still come from functional languages. These are really no classic C features. What triggered my attention the most is that they are coming up with a yield construct, which opens lots of possibilities. Iterators and higher order functions in many languages are built based on these. Most popular modern languages are pretty much multiple paradigm, and I think that is a good thing.
@SouvikHaldarmustang
@SouvikHaldarmustang 3 ай бұрын
Awesome coverage! Thanks
@dracsharp
@dracsharp 3 ай бұрын
Go is going from great to amazing.
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars 3 ай бұрын
the route parameters and methods addition is really cool, will be using that
@orcofnbu
@orcofnbu Күн бұрын
last one is the bomb. i completly agree that lagunages should depend little as possible to 3th party libraries.
@Gabiup2
@Gabiup2 2 ай бұрын
I would love to hear more about Profile Guided Optimisations (PGO).
@SultaoFeliz
@SultaoFeliz 3 ай бұрын
yes, please do a video of pgo!
@Lutz64
@Lutz64 3 ай бұрын
I am a bit unfamiliar with go networking std and fiber. what does the new update not change about perfering to use fiber over std library.
@melvyn99
@melvyn99 3 ай бұрын
Time to refactor some old code of mine that uses Gorilla. Nice summary, thank you :)
@gokulakrishnanr8414
@gokulakrishnanr8414 2 ай бұрын
Great, glad you found the summary helpful! 😊 Refactoring old code can be a challenge, but it's worth it in the end. Good luck with your refactoring process! 💻
@RootsterAnon
@RootsterAnon 3 ай бұрын
I'm happy!
@Mikenight120
@Mikenight120 3 ай бұрын
Loving the Go content!!
@Cr0nus
@Cr0nus 3 ай бұрын
The new routing feature is a great update! 👍
@edwardmurphy440
@edwardmurphy440 3 ай бұрын
Love the addition of routing in net/http. I literally just wrote my own router to avoid 3rd party code. I looks like I can replace most of it, except the middleware, with the new features in net/http.
@helloworld7796
@helloworld7796 3 ай бұрын
1.2.2 is awesome! I was using fiber so far, but now, this is so nice!
@Lorenzo1938
@Lorenzo1938 3 ай бұрын
I'm only waiting, now that we have 'iterators', a standard library package with chainable functional such as map filter reduce. It will be awesome
@shradhankumar4109
@shradhankumar4109 3 ай бұрын
isn't loop scope change quite close to how let/const and var behave in javascript?
@michel92777
@michel92777 3 ай бұрын
The editing was *top notch*, great job!
@adel8206
@adel8206 3 ай бұрын
I would love if the net/http server mux had an easy way to chain middleware and mount sub routers. sth like r.Use and r.Mount(path,mux). if we get that, i think will not be using any third party routers anymore.
@dominikfrohlich6253
@dominikfrohlich6253 3 ай бұрын
Exactly why I’m still using 3rd party. We need true middleware! But it’ll come eventually.
@gokulakrishnanr8414
@gokulakrishnanr8414 2 ай бұрын
Awesome idea! 🤔 Chaining middleware and mounting sub routers would streamline workflows. 🚀
@ethannnnnnn
@ethannnnnnn 3 ай бұрын
I’d love a video about debugging in go
@dmitrygavrovsky5938
@dmitrygavrovsky5938 3 ай бұрын
video about pprofile would be great! thank you!
@JohnNagleIV
@JohnNagleIV 3 ай бұрын
All I want is percent marked formatting for dates. I don't like using "magic numbers" as the formatting keys.
@aswath_s
@aswath_s 3 ай бұрын
I really want to know about profiling applications in production, how the process used to be previously, and what has changed in go 1.22.
@wcrb15
@wcrb15 3 ай бұрын
Definitely excited about it. I told my wife I definitely feel like a turbo nerd getting excited about a new release of a programming language but here we are 😂
@tobyzieglerrr
@tobyzieglerrr 3 ай бұрын
These are nice incremental changes, but as a newbie gopher i am actually a little shocked about that range issue... i did not even know the semantics yet. Why was this fixed so late? Coming from Java i still enjoy me some go and looking forward to learn some of the more complex stuff. I rewrite a little tool that i wrote in Java/Spring Boot currently to go... and it is sooo amazing to see how easy and straighforward things can be.
@x0z59
@x0z59 3 ай бұрын
Yes! Just yes!
@hamzarashid7579
@hamzarashid7579 3 ай бұрын
I was hoping that they would also add "Sum Types"
@RichM1967
@RichM1967 2 ай бұрын
I'd like a deeper dive on the changes.
@sammcj2000
@sammcj2000 3 ай бұрын
Profiling might be interesting - especially if it can be automated.
@IlmariLahti
@IlmariLahti 3 ай бұрын
This is great! A sane JSON lib next? 😅
@GabrielMoura32
@GabrielMoura32 3 ай бұрын
Thanks
@migmartin
@migmartin 3 ай бұрын
I currently use the Fiber framework, but with this change in the standard routing library I will have to try it out.
@gokulakrishnanr8414
@gokulakrishnanr8414 2 ай бұрын
Excited to try Fiber! 😃
@briancbarrow
@briancbarrow 3 ай бұрын
I would love a video on the profiling feature
@sporefergieboy10
@sporefergieboy10 3 ай бұрын
Very cool. I think I’ll stick with C89 and wait for the dust to settle
@nanke1987
@nanke1987 3 ай бұрын
I am planning to look at go (again) soon and frankly these "new" loop feature worry me. like there was no support for iterators? 😮. I guess this was the price of performance (move slow and fix things?)
@jorge28624
@jorge28624 3 ай бұрын
thank you for supporting the channel, 5.4 cm!
@gokulakrishnanr8414
@gokulakrishnanr8414 2 ай бұрын
Of course! Here's a concise and human-sounding reply: Thanks for the support, 5.4 cm! 😊 Your modals will look great with that extra padding. 💕
@Worldwidegam3r
@Worldwidegam3r 3 ай бұрын
I would like a video on profiling.
@ArcticPrimal
@ArcticPrimal 3 ай бұрын
For me, better error handling similar to rust, null safety and default values are what im hoping for.
@drprdcts
@drprdcts 3 ай бұрын
Same. Better error handling is a must.
@erikslorenz
@erikslorenz 3 ай бұрын
Just an abbreviated syntax for if != nil return err would do it for me. I don’t mind the syntax when I actually want to handle it in that function
@neonmidnight6264
@neonmidnight6264 3 ай бұрын
The nil is so bolted on that divorcing it into a some neat abstraction is highly unlikely at this point. Go seems to insist on fighting crucial advances of programming language development and this one is no exception.
@skelaw
@skelaw 3 ай бұрын
There is nothing wrong with error handling in go. In facts it is pretty good.
@gokulakrishnanr8414
@gokulakrishnanr8414 2 ай бұрын
Agreed! Rust-like error handling and null safety would be game-changers. 😍
@jerseyse410
@jerseyse410 3 ай бұрын
The 1.22 http routing changes are probably going to be the changes that get me to seriously start looking at go for my event listener to replace python
@gokulakrishnanr8414
@gokulakrishnanr8414 2 ай бұрын
Thanks for sharing your concerns about the upcoming HTTP routing changes! 🤔 It's understandable to feel uncertain about the impact on your event listener. Have you considered exploring alternative solutions, like using Go instead of Python? 😊
@user-qk4tx9jc4m
@user-qk4tx9jc4m 3 ай бұрын
Awesome❤❤❤
@PhonesUnboxing
@PhonesUnboxing 3 ай бұрын
Awesome🎉
@sohanchakraborty7141
@sohanchakraborty7141 2 ай бұрын
pls make more content in go and its new features
@iamunknownperiod3355
@iamunknownperiod3355 3 ай бұрын
I was like "this is not that exciting tbh" until the last part. That is huge.
@kostyan1983
@kostyan1983 3 ай бұрын
Wow! Thanks! But how do you easily implement for example rate limiter middleware on a pure net/http?
@dreamsofcode
@dreamsofcode 3 ай бұрын
You can wrap your handlers in middle-ware! I have a video planned that will show how to do middleware with net/http :)
@kostyan1983
@kostyan1983 3 ай бұрын
I'll be waiting! )@@dreamsofcode
@long-live-linux
@long-live-linux 3 ай бұрын
I wonder why Go, which pursues simplicity, adopted generators
@askassk
@askassk 3 ай бұрын
I'm somewhat sceptical of this move. It looks like a nightmare to debug and I don't see how it is much better than things like bufio.Scanner...
@gokulakrishnanr8414
@gokulakrishnanr8414 2 ай бұрын
Something went wrong. Please try again or refresh the commment.
@IgnacioTaranto
@IgnacioTaranto 3 ай бұрын
I really really hope they make `defer` block-scoped...
@baxiry.
@baxiry. 3 ай бұрын
Deferred code at the end of the scope may not be able to execute if an error occurs while executing the function. Deferral as an implicit function of rantime solves this problem.
@metaltyphoon
@metaltyphoon 3 ай бұрын
@@baxiry.non sense, zig and odin does this an works fines
@brainscott
@brainscott 2 ай бұрын
OMG the net/http changes are awesome
@gokulakrishnanr8414
@gokulakrishnanr8414 2 ай бұрын
Thanks for the feedback! 😊 The updated styling looks great!
@KripticSilence
@KripticSilence 3 ай бұрын
How do you edit your videos?
@DevlogBill
@DevlogBill 3 ай бұрын
Hi Dreams of Code, I am very curious about GO and especially now with this update. I am at the moment working with the basics of React and to my limited knowledge became aware that for full stack you need a restful API for your SPA (React.js) library. If I learn GO and the standard Library would this be enough for creating a full stack application? Will I still require a framework like Django or Next for the creation of a crud app? Or can I simple use GO on the backend? My primary focus is React at the moment but I would like to learn some backend and it seems GO is an excellent choice. Could you please share your thoughts? Much appreciated and thanks for the video.
@dreamsofcode
@dreamsofcode 3 ай бұрын
Hey William! If you're using react you might want to check out next.js which is a full stack framework. Otherwise you can use Go for the API backend! The net/http package is great for a simple server, you may find it easier to use gin or fiber as a beginner however!
@DevlogBill
@DevlogBill 3 ай бұрын
@@dreamsofcode Thank you for the recommendation! I think I may look into gin or fiber. I just want to spin up quickly a crud app fast. Thanks once again.
@DevlogBill
@DevlogBill 3 ай бұрын
@@dreamsofcode Thanks for the excellent advice! I've been reading the documentation on Go, Next.js, Express and Sveltekit and I came to the conclusion that I will try out Golang even though I read the learning curve is harder. But I figured maybe this will work better for me? I will soon find out. Thanks for the tips.
@Nerdimo
@Nerdimo 3 ай бұрын
Non go programmer, but does this code confuse you between the left screens and the right screen? 3:15
@samgarg5228
@samgarg5228 3 ай бұрын
The net/http change eliminates the use of chi router in one of my app.
@k1lluachan
@k1lluachan 2 ай бұрын
dose go have a 2D pixel drawing function in its standard library last time i checked go diet not have one
@mormantu8561
@mormantu8561 3 ай бұрын
I like the new changs in the http package. But I would have rather seen it more typed with an enum or something instead of being a part of the path.
@qzozp
@qzozp 3 ай бұрын
Rangefunc is what I'm waiting on. Having proper iterators will make Go actually worth programming in, imo.
@ayushshukla8413
@ayushshukla8413 2 ай бұрын
Please help with a detailed video on profiling. Thanks in advance
@apscandy
@apscandy 3 ай бұрын
I’m going to miss my favourite foot gun of go
@vaisakhkm783
@vaisakhkm783 3 ай бұрын
That's when i got stuck in learning go routines, i got so confused when it all printed 10 in stead of 1-10
@jongeduard
@jongeduard 3 ай бұрын
C# fixed this same kind of problem with foreach loops many years ago, in 2012, when Go was still very young. I think it's a must for any language that supports variable capturing and functional features. JavaScript never fixed anything in loops. But that's probably also better, it's still a huge breaking change, even though it fixes issues. And such a thing cannot be done with a language which the entire web depends on.
@gokulakrishnanr8414
@gokulakrishnanr8414 2 ай бұрын
Thanks for sharing your favorite foot gun design! 😊
@rezkycodes
@rezkycodes 3 ай бұрын
What theme are you using?
@FairlySadPanda
@FairlySadPanda 3 ай бұрын
At last, no more tc := tc in every test case collection I write
@pdox9235
@pdox9235 2 ай бұрын
Does this new change eliminate the need for a go framework like echo? I just started a project using echo so if I could not use it that might be even better
@dreamsofcode
@dreamsofcode 2 ай бұрын
It does change the need! I have a video coming out in the next week on using net/http entirely :)
@michelchaghoury9629
@michelchaghoury9629 3 ай бұрын
what vs code theme are u using
@agb2557
@agb2557 3 ай бұрын
I’ve been getting into Go over the past few weeks, now starting to learn about servers and templating so I’m really glad I don’t have to look to 3rd party libs!
@bradleyrigg7137
@bradleyrigg7137 3 ай бұрын
Finally sane routing.
@IrohTheGreat
@IrohTheGreat 3 ай бұрын
Hopefully they still keep this language simple. Thats a hugr selling point for me. I dont want go to be another Java/C#/C++ which only follows trends making big mess around. People coming to Go from Java/C# or other more feature rich languages want more features, but then once language gets bloated are the ones to complain about it
@roman-romadin
@roman-romadin 3 ай бұрын
Great video. However, plz do not jump between part of code and presentation. And please, please do not zoom in. Plz, use only one scale for the video.
@mehdiyahiacherif2326
@mehdiyahiacherif2326 3 ай бұрын
C'mooon i choosed rust over go and now go has a good http library ... (at least my language has good functional tools and iterators right ?) choose whatever feels good for your projects buds !
@anon_y_mousse
@anon_y_mousse 3 ай бұрын
Every once in a while I learn something new about Go that really disappoints me. Like why have a function which deletes a slice and returns a copy of the new array and still modifies the old one, and in such a weird way. Either adjust its length or don't modify it at all. And for that matter, why does it not have a syntax for handling slicing. The way in which for loops work is wonky to me, both the old scoping rule, and apparently the new behavior. I would expect with a coroutine, or as they call them in Go a goroutine, that it would either be ordered like a stack or a queue. So iterating over the set should either print it backwards or in order, but what you showed was neither. At least they changed the scoping rule to make sense.
@catcatcatcatcatcatcatcatcatca
@catcatcatcatcatcatcatcatcatca 3 ай бұрын
Am I stupid for being extremely confused by the syntax for yielding a function? It feels like there is one layer of func too many to make sense. I bet it makes more sense for someone experienced with the language.
@olhoTron
@olhoTron 3 ай бұрын
0:53 is yield a new keyword? Or just the name of the variable? 😅
@kr30000
@kr30000 3 ай бұрын
keyword
@thovinh5386
@thovinh5386 3 ай бұрын
Yeap, it'll be a new keyword.
@olhoTron
@olhoTron 3 ай бұрын
No, it will be just convention thankfully, I just checked, range will just check the signature of the value its receiving, if its a function with a specific type signature (and parameter names are not part of the function type) it will use it as a iterator Most people will for sure just use "yield" but you can use "yeet" just fine
@ArsenGaming
@ArsenGaming 3 ай бұрын
It's not a new keyword. It's the name of a variable passed into the iterator function. You can call it anything you want.
@vmohammad
@vmohammad 3 ай бұрын
cool vid
@adrien-barret
@adrien-barret 3 ай бұрын
mux and others bring tooling for middleware not just rooting so they are still useful
@edvardm4348
@edvardm4348 3 ай бұрын
as a recent Go dev, I still feel Go is Rust-- (or put the other way, Rust took really good ideas from many languages, including Go, and made everything just a bit better than those other langs, so Rust could be seen as... Go++ with some nifty ML/Haskell influences?) There are many, many really good things in Go, not addressing those. What I'm missing is - strong stating typing with type inference - GADTs - pure functions (to be fair, Rust doesn't have those either) - being able to not use GC - lack of verbosity (errors as return values are better than exceptions, but explicit forced checks really call for functors) #hashtagrustenvy
@mahdiyounesi625
@mahdiyounesi625 3 ай бұрын
Why is the video speed so quick ?
@lucy-pero
@lucy-pero 3 ай бұрын
do they have enums yet?
@ongayijohnian8787
@ongayijohnian8787 28 күн бұрын
Mahn, please do the dadbod plugins for NvChad
@ethannnnnnn
@ethannnnnnn 3 ай бұрын
I’m really confused. How is it that go, a language seemingly intended for concurrent applications running on web servers, had subpar http methods that don’t even provide query url params?
@petrhanzl8399
@petrhanzl8399 3 ай бұрын
I love your terminal! Can you share your setup?
@dreamsofcode
@dreamsofcode 3 ай бұрын
Absolutely! I'll be doing so on my other channel. You can find a link on my channel page 😁
@petrhanzl8399
@petrhanzl8399 3 ай бұрын
uhh can you share the link to the chanel, i cannot find it@@dreamsofcode
@svetogor777
@svetogor777 3 ай бұрын
super
@Senai
@Senai 3 ай бұрын
How do you animate your videos?
@dreamsofcode
@dreamsofcode 3 ай бұрын
This one was mostly Davinci Resolve fusion with a couple in After Effects
@Senai
@Senai 3 ай бұрын
@@dreamsofcode nice thanks for replying, love your videos, keep on keeping on.
@amady4547
@amady4547 3 ай бұрын
I want a video about profiling!!!
@exvimmer
@exvimmer 3 ай бұрын
Go is my favorite language. I know C/C++, TypeScript, Python, and JavaScript. None of them feel like Go. I even started changing my C++ codes to have a happy and error path like the way we do it in Go. I think Go has the best design. The only thing that bothers me is memory management, but I guess it's fine.
@natescode
@natescode 3 ай бұрын
Keep going. There are definitely better languages.
@tomaszgalkowski8701
@tomaszgalkowski8701 2 ай бұрын
cmp.Or is the GOAT of this update.
@jlshrestha2541
@jlshrestha2541 3 ай бұрын
hi sir, I m a novice for Go, how to use middleware with this net/http router?
@dreamsofcode
@dreamsofcode 3 ай бұрын
I shall do a video on this! Basically you can wrap the handler in your middleware function
@Nenad_bZmaj
@Nenad_bZmaj 3 ай бұрын
To me, "fix" for loops was unnecessary. Take a look at 0:34. I had no problems with writing an extra line: for i := range nums { x := &nums[i] // extra line in in Go
@Armetron
@Armetron 3 ай бұрын
Dam I just finished learning Go to start working on production code. Time to relearn it 😅
The standard library now has all you need for advanced routing in Go.
13:52
When RESTful architecture isn't enough...
21:02
Dreams of Code
Рет қаралды 239 М.
Chips evolution !! 😔😔
00:23
Tibo InShape
Рет қаралды 33 МЛН
КАХА и Джин 2
00:36
К-Media
Рет қаралды 3 МЛН
Why JavaScript Devs are Switching to Rust in 2024
10:35
warpdotdev
Рет қаралды 241 М.
Go Pointers: When & How To Use Them Efficiently
14:09
Anthony GG
Рет қаралды 63 М.
Golang is OG?
5:16
Martin Baun
Рет қаралды 2,3 М.
Go 1.22 - Fixes For Loops | Prime News
7:41
ThePrimeTime
Рет қаралды 68 М.
This Is The BEST Way To Structure Your GO Projects
11:08
Melkey
Рет қаралды 58 М.
Solid Programming - No Thanks
32:00
ThePrimeTime
Рет қаралды 215 М.
The best (and worst) types for storing money in PostgreSQL
11:37
Dreams of Code
Рет қаралды 42 М.
Rust for the impatient
10:43
No Boilerplate
Рет қаралды 646 М.
How charged your battery?
0:14
V.A. show / Магика
Рет қаралды 210 М.
Эволюция телефонов!
0:30
ТРЕНДИ ШОРТС
Рет қаралды 6 МЛН
Пленка или защитное стекло: что лучше?
0:52
Слава 100пудово!
Рет қаралды 2,1 МЛН
What’s your charging level??
0:14
Татьяна Дука
Рет қаралды 6 МЛН
iPhone green Line Issue #iphone #greenlineissue #greenline #trending
0:10
Rk Electronics Servicing Center
Рет қаралды 4,8 МЛН
Very Best And Good Price Smart Phone
0:42
SDC Editing Zone 9K
Рет қаралды 217 М.