Golang pointers explained, once and for all

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

КОМЕНТАРІ • 49

  • @gr0m4n
    @gr0m4n 27 днів тому

    This is the best explanation of pointers I've seen. Great job!

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

    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.

  • @ansidhe
    @ansidhe 3 місяці тому +5

    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! 👍🏼🤩

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

    Diagrams on point (get it??). Seriously this channel is a goldmine

  • @gerinsz
    @gerinsz 4 місяці тому +2

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

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

    Jamie these videos are fantastic! Please don't stop making them. Thank you.

  • @mujibulhaquetanim
    @mujibulhaquetanim 4 місяці тому +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!

  • @bachdx2812
    @bachdx2812 3 місяці тому +1

    awesome video ! we need more of this kind of content on youtube !!!
    great work !

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

    It was easy to understand because of the graphical content. Having stack and heap graphs along with the code helped me associate those two. Thank you for the video.

  • @raypamber
    @raypamber 3 місяці тому +2

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

  • @thmater-x9786
    @thmater-x9786 4 місяці тому +1

    bless the youtube algorithm for this video
    just perfect

  • @juanjoivars3254
    @juanjoivars3254 5 місяців тому +2

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

  • @ll931217
    @ll931217 4 місяці тому +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

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

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

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

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

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

    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!

  • @JigangLi-x3z
    @JigangLi-x3z 4 місяці тому

    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.

  • @rkalpeshk
    @rkalpeshk 5 місяців тому +1

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

  • @keen2461
    @keen2461 4 місяці тому +1

    Excellent explanation! Thanks.

  • @hameldesai4756
    @hameldesai4756 4 місяці тому +2

    Bless this video

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

    This channel deserves more subs, gj Jamie

  • @MatthieuKHAIRALLAH-x7t
    @MatthieuKHAIRALLAH-x7t Місяць тому

    Thanks this is a great video :)

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

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

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

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

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

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

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

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

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

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

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

    Great Explanation.

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

    Extremely helpful 😊

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

    great video, great animation. thanks

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

    Really helpful explanation! Thanks

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

    Nice and easy explanation, Thank you

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

    Thanks. really good explanation.👏

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

    Awesome explanation. Thanks!!

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

    Nice

  • @adardev-po2rg
    @adardev-po2rg 3 місяці тому

    Hi Jamie, Please create a video on Garbage Collector algorithms.

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

    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 5 місяців тому

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

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

    Please make videos on concurrency

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

    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.

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

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

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

    interface, context, structs and functions plz

  • @codelinx
    @codelinx 4 місяці тому +5

    This isn’t the original channel…

    • @darlymettmicheli2204
      @darlymettmicheli2204 4 місяці тому +2

      what is the original?

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

      I think she got rid of it or renamed it. She has a channel dedicated to game dev though,
      youtube.com/@jamie_dev?si=VKI6v-HnKCFXY9Eo

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

    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: ua-cam.com/video/ISOjCvpNiYA/v-deo.html . Any opinion?

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

    I am going tos leep. Goodbye. see you