Golang pointers explained, once and for all

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024

Комментарии • 41

  • @ansidhe
    @ansidhe 6 дней назад +3

    The key thing to grok is:
    & = „address of”
    * = „value at” (of course apart from the * when used to declare a pointer variable 😉)
    Great animations BTW! 👍🏼🤩

  • @fagnersales532
    @fagnersales532 28 дней назад +4

    Just started learning Go and I'm amazed that I could learn about Pointers in just 13 minutes. Amazing, never could really understand the idea of it in other languages, but did with easy with your explanation.

  • @raypamber
    @raypamber 11 дней назад +2

    That's such a useful information in 13 minutes
    thank you so much for the content

  • @ll931217
    @ll931217 16 дней назад +2

    Just started learning golang after programming in python and javascript for over 6 years. I didn't study CS only IT, so all of this deep level stuff are very new to me, your explanation is super clear, I would recommend this video to people that are also starting out in golang

    • @emmm_4465
      @emmm_4465 11 дней назад

      Right? This is a totally new paradigm for me also with JS background so super interesting. Think I wanna learn go

    • @hendrywilliam
      @hendrywilliam 11 дней назад

      @@emmm_4465 same thing for me, coming from typescript and learn go, and find out go is interesting to play with, also solved some leetcodes using go, it was fun experience.

  • @thmater-x9786
    @thmater-x9786 Месяц назад +1

    bless the youtube algorithm for this video
    just perfect

  • @gerinsz
    @gerinsz Месяц назад +2

    Thank you for re-uploading this video. I thought it was going to be gone forever after your previous channel.

  • @juanjoivars3254
    @juanjoivars3254 Месяц назад +2

    Outstanding explanation, thank you for taking your time.
    I love the graphics shown, it helps a lot of 👍

  • @dab500
    @dab500 5 дней назад

    Thanks for this video! You explained it very well. I tried a couple videos and I still couldn't get it till this video. Subscribed!

  • @hameldesai4756
    @hameldesai4756 28 дней назад +2

    Bless this video

  • @rkalpeshk
    @rkalpeshk 2 месяца назад +1

    Very good and clear explanation.
    Thank you for sharing the knowledge.

  • @JigangLi-x3z
    @JigangLi-x3z Месяц назад

    Nice Explanation. I know there were a long history of debate about "Passing as reference" and "Passing as value". The immunity is a another good angle to think this problem. Thanks so much. The animation is super clear.

  • @keen2461
    @keen2461 20 дней назад +1

    Excellent explanation! Thanks.

  • @romarioteixeira9567
    @romarioteixeira9567 Месяц назад

    I recently started learning Go and will definitely keep an eye on this channel! Such a nice explanation

  • @kmilorestre5223
    @kmilorestre5223 Месяц назад

    Just the day after I start learning Go, thanks!!

  • @mujibulhaquetanim
    @mujibulhaquetanim Месяц назад +1

    Your explanation was spot-on, clarifying all the confusing parts, especially the puzzling matter of returning addresses versus copies. And your voice? It's soothing to the mind! Many thanks!

  • @bbcoolg100
    @bbcoolg100 Месяц назад

    Really well explained! Amazing job!!! Thank you!!!

  • @pache5702
    @pache5702 11 дней назад

    Great video, I just have a bit of experience with C and this was easy to follow:)

  • @larenlarry5773
    @larenlarry5773 26 дней назад

    This channel deserves more subs, gj Jamie

  • @viththagan3547
    @viththagan3547 17 дней назад

    Great Explanation.

  • @ayato7429
    @ayato7429 28 дней назад

    Hey, your explanation was really really good!
    I will look into more videos of yours :)

  • @yogendra591
    @yogendra591 Месяц назад

    Really helpful explanation! Thanks

  • @jigarn
    @jigarn 2 месяца назад

    Nice and easy explanation, Thank you

  • @haroonalbar2725
    @haroonalbar2725 Месяц назад

    Thanks. really good explanation.👏

  • @ProgrammingRainbow
    @ProgrammingRainbow 15 дней назад

    In Go *int is 2 tokens as in * int. The space is optional. I was also wondering if this subject is better suited to C instead of Go or, better yet, Forth or Assembly. Also, variable names get stripped when compiling normally. It's just address and type.

  • @tz8904
    @tz8904 Месяц назад

    great video, great animation. thanks

  • @uipath234
    @uipath234 22 дня назад

    Please make videos on concurrency

  • @AdiKSingh19xx
    @AdiKSingh19xx Месяц назад

    Extremely helpful 😊

  • @davisbento
    @davisbento 2 месяца назад

    Awesome explanation. Thanks!!

  • @imranaalam
    @imranaalam 13 дней назад

    interface, context, structs and functions plz

  • @muhamadasif2802
    @muhamadasif2802 Месяц назад

    Nice

  • @codelinx
    @codelinx 20 дней назад +5

    This isn’t the original channel…

  • @Cyandog
    @Cyandog 2 месяца назад

    Hi! Really great job in the concise explanation! Got a like and new sub!
    One quick question though: Is the heap used when returning normal values as well or just for pointers? Does that heap allocation process happen everytime a function returns?
    Thank you in advance!

    • @vaeris
      @vaeris Месяц назад

      Normally a copy of your returned variable will be returned to the calling frame on the stack.

  • @925082
    @925082 Месяц назад

    Excellent explanation. May i know how did you make animation and show variable in box and lines what software or things?

  • @ntkidding
    @ntkidding 25 дней назад

    I been working with Go for so many years and, even knowing this stuff, is always good to refresh the mind. I have a question that might be due to not being a native, but I guess you said that we should use pointers for better usage of memory but this video proves different: ruclips.net/video/ISOjCvpNiYA/видео.html . Any opinion?

  • @whiteingale
    @whiteingale Месяц назад

    I am going tos leep. Goodbye. see you