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

Ғылым және технология

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

Пікірлер: 256

  • @XxxX-ek6fx
    @XxxX-ek6fx4 ай бұрын

    A video on the profiling feature in go compilation is a must! Anything to learn how to make go run faster

  • @JorgeDB

    @JorgeDB

    4 ай бұрын

    Missed the opportunity to say "make go go faster"

  • @LieberLois

    @LieberLois

    4 ай бұрын

    Can u elaborate on that? Not aware of tooling apart from pprof

  • @bororobo3805

    @bororobo3805

    4 ай бұрын

    It's already faster. It's you who makes it slow 😂. You're the enemy of your own progress

  • 3 ай бұрын

    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

    3 ай бұрын

    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! 🚀

  • @ccs4321
    @ccs43214 ай бұрын

    Everything on golang is great, The only thing I wish it have is a real enum

  • @gokulakrishnanr8414

    @gokulakrishnanr8414

    3 ай бұрын

    Thanks for sharing your thoughts! 🤔 Enum support is a great idea, maybe someday... 😊

  • @iwolfman37
    @iwolfman374 ай бұрын

    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

    4 ай бұрын

    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

    4 ай бұрын

    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

    3 ай бұрын

    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

    Ай бұрын

    ​@@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.

  • @AbegazNap
    @AbegazNap4 ай бұрын

    a memory profiling video would be amazing

  • @gokulakrishnanr8414

    @gokulakrishnanr8414

    3 ай бұрын

    Awesome idea! 👍 Modal styling added to the list. 💡

  • @dejangegic
    @dejangegic4 ай бұрын

    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

    4 ай бұрын

    Damn that sounds amazing

  • @kuroxell

    @kuroxell

    4 ай бұрын

    Damn that sounds amazing

  • @clementdato6328

    @clementdato6328

    4 ай бұрын

    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

    4 ай бұрын

    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

    4 ай бұрын

    @@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.

  • @leopet6815
    @leopet68154 ай бұрын

    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!

  • @yassinouakka126
    @yassinouakka1264 ай бұрын

    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

    3 ай бұрын

    Something went wrong. Please try again or refresh the commment.

  • @jayjay7333
    @jayjay73334 ай бұрын

    Love your content❤. Video on pprof would be amazing.

  • @rando521
    @rando5214 ай бұрын

    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

    4 ай бұрын

    There’s no way it’s the perfect solution for most apps lol

  • @EndikaMT

    @EndikaMT

    4 ай бұрын

    Optional and enums and the language would be almost perfect.

  • @skelaw

    @skelaw

    4 ай бұрын

    json null handling is awfull

  • @gokulakrishnanr8414

    @gokulakrishnanr8414

    3 ай бұрын

    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! 💡

  • @exapsy
    @exapsy4 ай бұрын

    that was a very interesting summary! thanks for providing it

  • @gokulakrishnanr8414

    @gokulakrishnanr8414

    3 ай бұрын

    Thanks for the kind words! Glad you found the summary helpful.

  • @gimmebytes
    @gimmebytes4 ай бұрын

    I like the changes to net/http most - but second I really like the style and your voice over on your videos!

  • @gokulakrishnanr8414

    @gokulakrishnanr8414

    3 ай бұрын

    Thanks for the feedback! 😊 Glad you like the changes and the voiceover. 🎙️

  • @ahmedadly
    @ahmedadly3 ай бұрын

    great overview, thank you

  • @codesheep4028
    @codesheep40283 ай бұрын

    That's amazing! Thanks for the content. qq, what do you use to edit your videos? It looks so clean

  • @adamszalkowski8226
    @adamszalkowski82264 ай бұрын

    Nice video - thank you!

  • @mr.togrul--9383
    @mr.togrul--93834 ай бұрын

    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

    3 ай бұрын

    Thanks for sharing! 😊 The new HTTP library improvements will definitely make web development in Go easier. Good luck with your future projects! 🚀

  • @peacetothehumanity5558
    @peacetothehumanity55584 ай бұрын

    Cool vid and nice editing what is you flow and tools for creating zoom in and outlining animations around content. Thanks

  • @yakomisar
    @yakomisar4 ай бұрын

    Detailed video about the profiling is a must

  • @SouvikHaldarmustang
    @SouvikHaldarmustang4 ай бұрын

    Awesome coverage! Thanks

  • @a_maxed_out_handle_of_30_chars
    @a_maxed_out_handle_of_30_chars4 ай бұрын

    the route parameters and methods addition is really cool, will be using that

  • @Gabiup2
    @Gabiup23 ай бұрын

    I would love to hear more about Profile Guided Optimisations (PGO).

  • @melvyn99
    @melvyn994 ай бұрын

    Time to refactor some old code of mine that uses Gorilla. Nice summary, thank you :)

  • @gokulakrishnanr8414

    @gokulakrishnanr8414

    3 ай бұрын

    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! 💻

  • @jongeduard
    @jongeduard4 ай бұрын

    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

    4 ай бұрын

    ^ how to tell someone you don't understand FP without telling them you don't understand FP.

  • @leopet6815

    @leopet6815

    4 ай бұрын

    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.

  • @adel8206
    @adel82064 ай бұрын

    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

    4 ай бұрын

    Exactly why I’m still using 3rd party. We need true middleware! But it’ll come eventually.

  • @gokulakrishnanr8414

    @gokulakrishnanr8414

    3 ай бұрын

    Awesome idea! 🤔 Chaining middleware and mounting sub routers would streamline workflows. 🚀

  • @SultaoFeliz
    @SultaoFeliz4 ай бұрын

    yes, please do a video of pgo!

  • @dracsharp
    @dracsharp4 ай бұрын

    Go is going from great to amazing.

  • @Lutz64
    @Lutz644 ай бұрын

    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.

  • @shradhankumar4109
    @shradhankumar41094 ай бұрын

    isn't loop scope change quite close to how let/const and var behave in javascript?

  • @edwardmurphy440
    @edwardmurphy4403 ай бұрын

    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.

  • @dmitrygavrovsky5938
    @dmitrygavrovsky59384 ай бұрын

    video about pprofile would be great! thank you!

  • @Lorenzo1938
    @Lorenzo19384 ай бұрын

    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

  • @migmartin
    @migmartin4 ай бұрын

    I currently use the Fiber framework, but with this change in the standard routing library I will have to try it out.

  • @gokulakrishnanr8414

    @gokulakrishnanr8414

    3 ай бұрын

    Excited to try Fiber! 😃

  • @ethannnnnnn
    @ethannnnnnn4 ай бұрын

    I’d love a video about debugging in go

  • @wcrb15
    @wcrb154 ай бұрын

    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 😂

  • @RootsterAnon
    @RootsterAnon3 ай бұрын

    I'm happy!

  • @Cr0nus
    @Cr0nus4 ай бұрын

    The new routing feature is a great update! 👍

  • @helloworld7796
    @helloworld77963 ай бұрын

    1.2.2 is awesome! I was using fiber so far, but now, this is so nice!

  • @aswath_s
    @aswath_s4 ай бұрын

    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.

  • @RichM1967
    @RichM19673 ай бұрын

    I'd like a deeper dive on the changes.

  • @Mikenight120
    @Mikenight1204 ай бұрын

    Loving the Go content!!

  • @nanke1987
    @nanke19874 ай бұрын

    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?)

  • @sammcj2000
    @sammcj20004 ай бұрын

    Profiling might be interesting - especially if it can be automated.

  • @sporefergieboy10
    @sporefergieboy104 ай бұрын

    Very cool. I think I’ll stick with C89 and wait for the dust to settle

  • @orcofnbu
    @orcofnbu27 күн бұрын

    last one is the bomb. i completly agree that lagunages should depend little as possible to 3th party libraries.

  • @KripticSilence
    @KripticSilence4 ай бұрын

    How do you edit your videos?

  • @tobyzieglerrr
    @tobyzieglerrr4 ай бұрын

    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.

  • @hamzarashid7579
    @hamzarashid75794 ай бұрын

    I was hoping that they would also add "Sum Types"

  • @user-qk4tx9jc4m
    @user-qk4tx9jc4m4 ай бұрын

    Awesome❤❤❤

  • @jorge28624
    @jorge286244 ай бұрын

    thank you for supporting the channel, 5.4 cm!

  • @gokulakrishnanr8414

    @gokulakrishnanr8414

    3 ай бұрын

    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. 💕

  • @GabrielMoura32
    @GabrielMoura324 ай бұрын

    Thanks

  • @JohnNagleIV
    @JohnNagleIV4 ай бұрын

    All I want is percent marked formatting for dates. I don't like using "magic numbers" as the formatting keys.

  • @briancbarrow
    @briancbarrow4 ай бұрын

    I would love a video on the profiling feature

  • @IlmariLahti
    @IlmariLahti4 ай бұрын

    This is great! A sane JSON lib next? 😅

  • @x0z59
    @x0z594 ай бұрын

    Yes! Just yes!

  • @Worldwidegam3r
    @Worldwidegam3r4 ай бұрын

    I would like a video on profiling.

  • @rezkycodes
    @rezkycodes4 ай бұрын

    What theme are you using?

  • @michel92777
    @michel927774 ай бұрын

    The editing was *top notch*, great job!

  • @PhonesUnboxing
    @PhonesUnboxing3 ай бұрын

    Awesome🎉

  • @sohanchakraborty7141
    @sohanchakraborty71413 ай бұрын

    pls make more content in go and its new features

  • @vmohammad
    @vmohammad4 ай бұрын

    cool vid

  • @kostyan1983
    @kostyan19834 ай бұрын

    Wow! Thanks! But how do you easily implement for example rate limiter middleware on a pure net/http?

  • @dreamsofcode

    @dreamsofcode

    4 ай бұрын

    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

    4 ай бұрын

    I'll be waiting! )@@dreamsofcode

  • @iamunknownperiod3355
    @iamunknownperiod33554 ай бұрын

    I was like "this is not that exciting tbh" until the last part. That is huge.

  • @long-live-linux
    @long-live-linux4 ай бұрын

    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

    3 ай бұрын

    Something went wrong. Please try again or refresh the commment.

  • @michelchaghoury9629
    @michelchaghoury96294 ай бұрын

    what vs code theme are u using

  • @ArcticPrimal
    @ArcticPrimal4 ай бұрын

    For me, better error handling similar to rust, null safety and default values are what im hoping for.

  • @drprdcts

    @drprdcts

    4 ай бұрын

    Same. Better error handling is a must.

  • @erikslorenz

    @erikslorenz

    4 ай бұрын

    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

    4 ай бұрын

    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

    4 ай бұрын

    There is nothing wrong with error handling in go. In facts it is pretty good.

  • @gokulakrishnanr8414

    @gokulakrishnanr8414

    3 ай бұрын

    Agreed! Rust-like error handling and null safety would be game-changers. 😍

  • @Nerdimo
    @Nerdimo4 ай бұрын

    Non go programmer, but does this code confuse you between the left screens and the right screen? 3:15

  • @jerseyse410
    @jerseyse4104 ай бұрын

    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

    3 ай бұрын

    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? 😊

  • @mahdiyounesi625
    @mahdiyounesi6253 ай бұрын

    Why is the video speed so quick ?

  • @k1lluachan
    @k1lluachan3 ай бұрын

    dose go have a 2D pixel drawing function in its standard library last time i checked go diet not have one

  • @DevlogBill
    @DevlogBill4 ай бұрын

    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

    4 ай бұрын

    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

    4 ай бұрын

    @@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

    4 ай бұрын

    @@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.

  • @ayushshukla8413
    @ayushshukla84133 ай бұрын

    Please help with a detailed video on profiling. Thanks in advance

  • @samgarg5228
    @samgarg52284 ай бұрын

    The net/http change eliminates the use of chi router in one of my app.

  • @lucy-pero
    @lucy-pero4 ай бұрын

    do they have enums yet?

  • @roman-romadin
    @roman-romadin4 ай бұрын

    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.

  • @olhoTron
    @olhoTron4 ай бұрын

    0:53 is yield a new keyword? Or just the name of the variable? 😅

  • @kr30000

    @kr30000

    4 ай бұрын

    keyword

  • @thovinh5386

    @thovinh5386

    4 ай бұрын

    Yeap, it'll be a new keyword.

  • @olhoTron

    @olhoTron

    4 ай бұрын

    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

    4 ай бұрын

    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.

  • @pdox9235
    @pdox92353 ай бұрын

    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

    3 ай бұрын

    It does change the need! I have a video coming out in the next week on using net/http entirely :)

  • @IgnacioTaranto
    @IgnacioTaranto4 ай бұрын

    I really really hope they make `defer` block-scoped...

  • @baxiry.

    @baxiry.

    4 ай бұрын

    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

    4 ай бұрын

    @@baxiry.non sense, zig and odin does this an works fines

  • @FairlySadPanda
    @FairlySadPanda4 ай бұрын

    At last, no more tc := tc in every test case collection I write

  • @ethannnnnnn
    @ethannnnnnn4 ай бұрын

    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?

  • @apscandy
    @apscandy4 ай бұрын

    I’m going to miss my favourite foot gun of go

  • @vaisakhkm783

    @vaisakhkm783

    4 ай бұрын

    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

    4 ай бұрын

    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

    3 ай бұрын

    Thanks for sharing your favorite foot gun design! 😊

  • @mormantu8561
    @mormantu85614 ай бұрын

    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.

  • @HaydenDoingThings
    @HaydenDoingThings4 ай бұрын

    Rangefunc is what I'm waiting on. Having proper iterators will make Go actually worth programming in, imo.

  • @ongayijohnian8787
    @ongayijohnian8787Ай бұрын

    Mahn, please do the dadbod plugins for NvChad

  • @brainscott
    @brainscott3 ай бұрын

    OMG the net/http changes are awesome

  • @gokulakrishnanr8414

    @gokulakrishnanr8414

    3 ай бұрын

    Thanks for the feedback! 😊 The updated styling looks great!

  • @mehdiyahiacherif2326
    @mehdiyahiacherif23264 ай бұрын

    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 !

  • @catcatcatcatcatcatcatcatcatca
    @catcatcatcatcatcatcatcatcatca4 ай бұрын

    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.

  • @Taddy_Mason
    @Taddy_Mason4 ай бұрын

    How do you animate your videos?

  • @dreamsofcode

    @dreamsofcode

    4 ай бұрын

    This one was mostly Davinci Resolve fusion with a couple in After Effects

  • @Taddy_Mason

    @Taddy_Mason

    4 ай бұрын

    @@dreamsofcode nice thanks for replying, love your videos, keep on keeping on.

  • @petrhanzl8399
    @petrhanzl83994 ай бұрын

    I love your terminal! Can you share your setup?

  • @dreamsofcode

    @dreamsofcode

    4 ай бұрын

    Absolutely! I'll be doing so on my other channel. You can find a link on my channel page 😁

  • @petrhanzl8399

    @petrhanzl8399

    4 ай бұрын

    uhh can you share the link to the chanel, i cannot find it@@dreamsofcode

  • @anon_y_mousse
    @anon_y_mousse4 ай бұрын

    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.

  • @GoogleIsErratas
    @GoogleIsErratas3 ай бұрын

    I'm still waiting for the missing containers

  • @adrien-barret
    @adrien-barret4 ай бұрын

    mux and others bring tooling for middleware not just rooting so they are still useful

  • @agb2557
    @agb25574 ай бұрын

    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!

  • @IrohTheGreat
    @IrohTheGreat4 ай бұрын

    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

  • @jlshrestha2541
    @jlshrestha25414 ай бұрын

    hi sir, I m a novice for Go, how to use middleware with this net/http router?

  • @dreamsofcode

    @dreamsofcode

    4 ай бұрын

    I shall do a video on this! Basically you can wrap the handler in your middleware function

  • @svetogor777
    @svetogor7774 ай бұрын

    super

  • @amady4547
    @amady45474 ай бұрын

    I want a video about profiling!!!

  • @bradleyrigg7137
    @bradleyrigg71374 ай бұрын

    Finally sane routing.

  • @Armetron
    @Armetron4 ай бұрын

    Dam I just finished learning Go to start working on production code. Time to relearn it 😅

  • @exvimmer
    @exvimmer4 ай бұрын

    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

    4 ай бұрын

    Keep going. There are definitely better languages.

  • @edvardm4348
    @edvardm43484 ай бұрын

    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

  • @tomaszgalkowski8701
    @tomaszgalkowski87013 ай бұрын

    cmp.Or is the GOAT of this update.

Келесі