Advanced Golang: Generics Explained

Поділитися
Вставка
  • Опубліковано 6 лис 2024

КОМЕНТАРІ • 101

  • @ColoDelCartucho
    @ColoDelCartucho 15 днів тому +1

    Coming from languages where generics are not a thing, that was a head scratcher. But you explained it very well, thank you !

  • @David-xy4nw
    @David-xy4nw Рік тому +47

    The way you explain things are too good brother ! Hopefully you are going to make a series on advanced golang, I am sure it would be the best stuff out there 🚀💪

  • @yasindce1998
    @yasindce1998 6 місяців тому +4

    Explanation is Top Notch. I clearly understood everything.

  • @ChristinaCephus
    @ChristinaCephus 9 місяців тому +1

    Amazing intro to Generics and that Map Comparable explanation was really T -- spot on

  • @spruslaks26
    @spruslaks26 9 місяців тому +1

    The best introduction to generics-huge thanks!

  • @SeleckPlays
    @SeleckPlays Рік тому +2

    One of the better tutorial on Generics I have watched. Concise, to the point, and thorough. Thank you!

  • @tam_sal80
    @tam_sal80 4 дні тому

    I'm a newbie to Go and that is such an amazing way to decipher the cumbersome Go syntax for an average java, python, js guy 😂
    Hats off 👏 🙌

  • @nomadtrails
    @nomadtrails 3 місяці тому

    Hats off, very well explained. Can't wait to dig through more of your videos.

  • @esra_erimez
    @esra_erimez Рік тому +10

    You have an awesome voice. So ASMR!

    • @hp67c
      @hp67c 5 місяців тому

      And plus it reminds me of Agent Smith, which shouldn't be a good thing, but it is. And yes, very clear explanations, excellent examples. I immediately subscribed.

  • @tiagodev5838
    @tiagodev5838 3 місяці тому

    Thank you for this intro, I really like how you deliver your knowledge, I resonated with it buddy! Great tutorial!

  • @codelinx
    @codelinx Рік тому +1

    This is so clean and we'll explained. Thank you

  • @BorisIsASpider
    @BorisIsASpider Рік тому +4

    Nice! keep these videos coming Ryan

  • @esra_erimez
    @esra_erimez Рік тому +47

    While I'm not a fan of generics, I am a fan of this channel. Great video, well done!

    • @ragnadrok7
      @ragnadrok7 Рік тому +6

      Damn i was actually waiting for generics at one point. Which solved Lots of problems for me

    • @thingsiplay
      @thingsiplay Рік тому

      Good to see you here as well.

  • @danielmdev
    @danielmdev 2 місяці тому

    great video, clear and straight to the point

  • @njengathegeek
    @njengathegeek Рік тому +5

    You have explained it so nice, now we want 12hr full course, too good to be a 10 min tutorial 😂😂😂

  • @bartzz666
    @bartzz666 2 місяці тому

    Great job man, such a clear explanation. Love your chill voice btw, keep it up!

  • @Tridib_Tinkel
    @Tridib_Tinkel Рік тому

    Love the way you teach, very calm

  • @Programscape
    @Programscape Рік тому

    Hi from Russia and thank u so much for such a simple and understandable explanation))

  • @blackswan2020
    @blackswan2020 8 місяців тому

    my new favorite golang channel -- ty Ryan

  • @happy..1907
    @happy..1907 2 місяці тому

    Very good explanation. Thanks 👍

  • @maniac5411
    @maniac5411 4 місяці тому

    Awesome stuff Ryan. I love your golang explanations. Are you planning/willing to make one that talks more about just interfaces, specially "empty interfaces"?

  • @andyyarys4467
    @andyyarys4467 5 місяців тому

    Thank You! All very clarify and helpful.

  • @kutmanamangeldiev4967
    @kutmanamangeldiev4967 Рік тому +1

    you made it as a piece of cake )) cool , good explanation

  • @sladki_pas
    @sladki_pas Рік тому +3

    Awesome video and author!

  • @learntocode1708
    @learntocode1708 Рік тому

    Love the way you explain generics

  • @tobiadeniji6630
    @tobiadeniji6630 10 місяців тому

    First time watching your video. Amazing content, keep up the good work.

  • @yogendra591
    @yogendra591 2 місяці тому

    Very nice explanation, thanks, subscribed!

  • @pmoieni
    @pmoieni Рік тому

    This was awesome. I wish you had more subscribers, you really deserve it. Keep up the good work... 👏

  • @codewithtee
    @codewithtee Рік тому

    This is really a very great video and I am so happy I found your channel... I would developed a package I am working on much better if I had seen this video first.. Thank you very much Ryan

  • @acronproject
    @acronproject Рік тому

    Thanks for this useful content about Generics very thanksfull

  • @sirajul-anik
    @sirajul-anik Рік тому

    you should make more videos man. appreciated.

  • @princeofxane
    @princeofxane Рік тому

    Best Go tutorial on UA-cam.

  • @sameergaikwad222
    @sameergaikwad222 3 місяці тому

    amazing explanation. Thanks

  • @shgh6242
    @shgh6242 Рік тому

    👍 Nice 👍 job 👍 very helpful, short kept and to the point.

  • @cavila0217
    @cavila0217 Рік тому

    Hi Bud, it was definitely a tip-top explanation, thanks a bunch!

  • @zoremeth7820
    @zoremeth7820 Рік тому

    Great video once again! Clear and relevant examples well explained

  • @randall.chamberlain
    @randall.chamberlain Рік тому

    I'll be damned, just what I was looking for. Word by word. Thanks mate.

  • @DavisTibbz
    @DavisTibbz Рік тому

    Fantastic as always bro

  • @abhiiyenger1294
    @abhiiyenger1294 6 місяців тому

    Thanks a lot!! Well explained!

  • @sarevoker
    @sarevoker Рік тому

    Nice intro to the topic buddy! I'm coming from C++ and I think Go's approach to generics is very clear and keeps the language simple.

  • @tmurchjr
    @tmurchjr Рік тому

    Great stuff as usual.

  • @tharouetmaamouri9831
    @tharouetmaamouri9831 11 місяців тому

    Brilliant, Thanks for this...

  • @mr.random8447
    @mr.random8447 Рік тому

    GoLand IDE worth it? Saves time?

  • @AseDeliri
    @AseDeliri Рік тому

    Great explanations, well done.

  • @marianokaimakamian6138
    @marianokaimakamian6138 2 місяці тому

    Very clear :D!... thanks!

  • @amirreza3638
    @amirreza3638 6 місяців тому

    Great video, thanks ❤

  • @zakariachahboun
    @zakariachahboun Рік тому

    i already know about generics in Go But the way that you explained it and your deep voice is just cool hhhh

  • @kamilziemian995
    @kamilziemian995 Рік тому +1

    4:55 I think alias would be `type UserID = int'. Now UserID is a new type with underlying type of int.

  • @rolandinnamorato1953
    @rolandinnamorato1953 Рік тому

    that audio quality though 10/10

  • @carlosramirezvera8645
    @carlosramirezvera8645 Рік тому

    excellent explanation!

  • @francogiulianopertile279
    @francogiulianopertile279 Рік тому

    Muy buen video, me encantó la explicación de Generics, simple y concisa.

  • @scottspitlerII
    @scottspitlerII Рік тому +1

    Man’s got a radio show host voice

  • @diegoparraca
    @diegoparraca Рік тому

    Waiting to buy your golang course :), realy nice vídeo btw

  • @ВладФоменко-р4е
    @ВладФоменко-р4е 10 місяців тому

    Thank you!

  • @body_clock
    @body_clock 6 місяців тому

    how do you have your terminal come down from the top like that?

  • @lotfikamel5947
    @lotfikamel5947 Рік тому

    I hope you do a full advanced serie of go

  • @MrYerak5
    @MrYerak5 6 місяців тому

    What happens on error like deviding two empty strings?

  • @mdkawsarislamyeasin4040
    @mdkawsarislamyeasin4040 Рік тому +2

    Please create a playlist for beginner 🙂

  • @blankos1817
    @blankos1817 7 місяців тому

    i have a question... why on minute 3:20 he creates an interface and not a struct?

  • @WorkHome-qv7kk
    @WorkHome-qv7kk Рік тому

    1:45 how did you change both types together

  • @WorkHome-qv7kk
    @WorkHome-qv7kk Рік тому

    How do you bring the terminal from the top? The one that pops up from the top

  • @badrakhariunchimeg1031
    @badrakhariunchimeg1031 4 місяці тому

    User (constraints user (func) return (a + b);)

  • @therealherbzy
    @therealherbzy Рік тому

    Great video!

  • @chang112x
    @chang112x 7 місяців тому

    Amazing!!!

  • @badrbadr3793
    @badrbadr3793 Рік тому

    Great video dude love it

  • @jayantasamaddar1446
    @jayantasamaddar1446 Рік тому

    At 4:25 I notice the interfaces being declared with the types and they have a `~` prefix. While you explain what it does, it seems like I can't find any resource for it. Can anyone link me a resource on the official website? Also I don't see the point of using Generics with Maps.

  • @awesomedavid2012
    @awesomedavid2012 Рік тому

    Great video

  • @minicime8516
    @minicime8516 10 місяців тому

    Good vid my man

  • @mrmakra-eo1kx
    @mrmakra-eo1kx Рік тому

    new to the channel really liked the video 😁

  • @lilbuckbreaker3868
    @lilbuckbreaker3868 2 місяці тому

    You’re the best

  • @eternaldoorman5228
    @eternaldoorman5228 Рік тому

    8:42 map could be any type. You could have an array of some structures and map a function that goes from structure to structure. The type inference ought to be able to handle everything. I know it can in Standard ML which was around in the eighties.

  • @kamilziemian995
    @kamilziemian995 Рік тому

    Nice video.

  • @vaibhavmewada4508
    @vaibhavmewada4508 4 місяці тому

    excellent

  • @mr.x5582
    @mr.x5582 Рік тому

    Awesome!!!

  • @OpenDeepLearning
    @OpenDeepLearning Рік тому

    are you using a hackintosh?

  • @terryphelps4204
    @terryphelps4204 Рік тому +1

    Good video. You don't do all the annoying shit that other do way too much of: background music, showing excitement ("Hey!! What's up, UA-camrs?!!"...), silly sound effects, etc. Just pass along knowledge to people who want to know.

  • @OpenDeepLearning
    @OpenDeepLearning Рік тому

    Do you use a mouse or a touchpad?

  • @flamejoy2843
    @flamejoy2843 Рік тому

    Thx a lot

  • @maury2000
    @maury2000 7 місяців тому

    nice vid!

  • @OmarAbdelaziz__47
    @OmarAbdelaziz__47 Рік тому

    well explained!

  • @mwnkt
    @mwnkt Рік тому

    Where have you been all my life.

  • @fadhlirahim
    @fadhlirahim 5 місяців тому

    what a voice!

  • @kumar-jatin-2000
    @kumar-jatin-2000 8 місяців тому

    🤓: Generics
    🧐: Parametric Polymorphism

  • @theflash2321
    @theflash2321 4 місяці тому

    oh thank for explant ti.

  • @enkiimuto1041
    @enkiimuto1041 Рік тому

    Considering it is official it is odd you can't just call something like "ordered" in the import.

  • @westernHypocricy
    @westernHypocricy 11 місяців тому

    You are using Goland IDE. You can just click the green button to run the program. Why are you using terminal instead? Specific reason? Just curious.

  • @hananasyrawi5206
    @hananasyrawi5206 Рік тому

    I like u voice tho

  • @headlinerbeats
    @headlinerbeats Рік тому

    I dont get why go has no proper array functions like map filter and reduce natively just like js/node. Even with generics, the fact that you always have to code that up is ridicioulos. Makes me not want to commit to Go tbh

    • @p19shelt
      @p19shelt 11 місяців тому

      one of my mayjor deciding factors whwn wanting to code my startup. I need expressiveness, which most of my apps is filtering data.

  • @kamurashev
    @kamurashev Рік тому +3

    Generics in go are ugly. Why the hell does it not infer type automatically? It looks like not generic but more like “multi typing” and syntax is also ugly.
    Video is cool though 👍

  • @kevinkkirimii
    @kevinkkirimii Рік тому

    Just use and save the hustle unless one truly requires generics. Go generics are not as great.

  • @amr3162
    @amr3162 Рік тому

    Generics in go are really ugly. wish the type system was a bit smarter

  • @josephs3973
    @josephs3973 3 місяці тому

    Man, dafuq you doing programming, you should be reading audio books and rocking me to sleep.

  • @anhhaoam3379
    @anhhaoam3379 4 місяці тому

    tks

  • @Douglascaina
    @Douglascaina 2 місяці тому

    maaan someone told me go had no generics and I was repeating functions like crazy 🫠

  • @rogvids
    @rogvids 10 місяців тому

    Great video