Golang Tutorial #19 - Pointers & Derefrence Operator (& and *)

  Рет қаралды 60,457

Tech With Tim

Tech With Tim

Күн бұрын

Пікірлер: 68
@ajlee1216
@ajlee1216 Жыл бұрын
This has to be one of the best explanations on this confusing Go topic! I certainly walked away with a much fuller understanding. Thanks Tim!
@autodidactgarage
@autodidactgarage Жыл бұрын
Seriously, I did C++ coding for years, somehow never managed to understand what pointers were or how they worked. Recently started to learn Go and this stressed me out all over. All the videos I watched were just as confusing. After watching Tim's video, it completely clicked and now makes perfect sense.
@TheDavBag
@TheDavBag 3 жыл бұрын
I'm not an English native speaker, my first language is Russian, but you dude explained this concept to me better than Russian speakers do. Thank you so much!
@PaullUniverse
@PaullUniverse 9 ай бұрын
я тоже русский и смотрю английских ютуберов которые объясняют темы в языках программирования. Как по мне, у англичан лучше получается давать объяснение таким важным и интересным темам. Я считаю, что это невероятно круто. Спасибо ТИМ!
@Bingminglin
@Bingminglin 3 жыл бұрын
best video ever explain crystal clear about & and *. Thx Tim, was struggling with these two for a while.
@alreadydeadfunk
@alreadydeadfunk 4 жыл бұрын
When I started my journey into programming, I have come to terms with stark difference in using parameters by reference from by value itself. It was in VB. But it gave me a understanding of what a difference that simple addition of a few words in syntax makes.
@MaximRovinsky
@MaximRovinsky 4 жыл бұрын
Cool. As always absolutely crystal. Thank you.
@rayensabandar8392
@rayensabandar8392 2 жыл бұрын
best line so far, "now, I actually got the pointer of the pointer when I did this, so I said &pointer which is a pointer to a pointer now I know that seems confusing, but this is pretty much telling me where the variable pointer is storing the pointer to toChange"
@dr99tm23
@dr99tm23 3 жыл бұрын
the pointer of the pointer 😱, thank you for this clear tutorial
@publicuser993
@publicuser993 4 жыл бұрын
i wasn't able understand when i was learning in c/c++ but you teached me now thanks tim
@kenocontreras
@kenocontreras 2 жыл бұрын
I finally understood pointers and dereference after watching this video; thank you!
@fikoredha5557
@fikoredha5557 2 жыл бұрын
Dude, your explanation is stunning. Thank you so much❤
@2cmarx
@2cmarx 2 жыл бұрын
FANTASTIC video. So clear. Great examples. Thank you
@techcode_man
@techcode_man 2 жыл бұрын
excellent explanation. 👍 And your & was perfect too 🤣. Well done!
@victorrodriguez7705
@victorrodriguez7705 2 жыл бұрын
amazing teacher an amazing video
@Sergey_Latyshev
@Sergey_Latyshev 4 жыл бұрын
'fmt.Println (&*&*&*&*&*&*&*pointer)' is a valid line btw.
@mayurnagrale5798
@mayurnagrale5798 4 жыл бұрын
you are really awesome at explaining concepts
@ma34529
@ma34529 Жыл бұрын
Very useful, thank you.
@randydouglas434
@randydouglas434 3 жыл бұрын
Very well explained.
@Blue-Scorpion
@Blue-Scorpion 2 жыл бұрын
Introduction of pointers seems like a legit crash course to hacking... :)
@gazm81
@gazm81 3 жыл бұрын
brilliant explanation, thank you
@_joaopaulo
@_joaopaulo 2 жыл бұрын
ótima explicação meu cria, tmj
@edgarlip2
@edgarlip2 2 жыл бұрын
awesome explanation !!! 10x !
@alejandrogomez8766
@alejandrogomez8766 4 жыл бұрын
Hi Tim, I'm learning Go and I found your videos very useful for that. I'm finding the topic of concurrency some difficult , do you think you can make a video on this topic?
@time_traveling_avocado
@time_traveling_avocado 2 жыл бұрын
Good point!
@johnbhosale
@johnbhosale 4 жыл бұрын
It's a good explanation. Thanks!
@nadzarmuttaqin6613
@nadzarmuttaqin6613 3 жыл бұрын
youre the best! thanks you very much
@Anu-vp9um
@Anu-vp9um 3 жыл бұрын
Thank You , Sooooo much , I finally understood this topic :)))
@kevinl.9657
@kevinl.9657 4 жыл бұрын
2:22 Why is your vscode so slow? It's not just in this video but for other vids in the series too.
@mikecon4097
@mikecon4097 2 жыл бұрын
it's not VS code that is slow, it is because of the extensions that we have to install with go that makes it slow...since it is statically typed language, which means you have to check all the things before you compile, this job is done by the Go extensions
@rasem3259
@rasem3259 4 жыл бұрын
Hey man i have a question, what can we do with Go, what's so special about it?
@Pimphats
@Pimphats 3 жыл бұрын
thanks for the video
@santiagocubillos83
@santiagocubillos83 4 жыл бұрын
bro thanks i finally understand
@sot_dev
@sot_dev 3 жыл бұрын
thank you!
@khazartalibov7911
@khazartalibov7911 3 жыл бұрын
Very good
@kvelez
@kvelez Жыл бұрын
Cool example: package main import "fmt" func main() { x := 7 y := &x fmt.Println(x, y) *y = 9 fmt.Println(x, y) toChange := "hello" changeValue(&toChange) changeValue2(toChange) } func changeValue(str *string) { *str = "changed" } func changeValue2(str string) { str = "Changed" }
@CeezGeez
@CeezGeez 3 жыл бұрын
18:40 Pointer inception
@empire2742
@empire2742 3 жыл бұрын
his teaching is like watching inception movie
@OfficialNattyOrNot
@OfficialNattyOrNot 3 жыл бұрын
I look at the at the *&* as an address or pathway for the * dereference and inject a new value. Anytime I see a pointer to a type. (*string or *int) I immediately think I must give a pathway or address (&) for the pointer.
@nikodemus7900
@nikodemus7900 4 жыл бұрын
loved it
@JuanLopez-ss3mz
@JuanLopez-ss3mz 4 жыл бұрын
Golang probably has the best mascot
@christy
@christy 2 жыл бұрын
nice but naming a string as string was a little confusing a bit because couldnt keep in mind which one is string definition and which one was variable name str vs string....
@alwadud0196
@alwadud0196 4 жыл бұрын
Awesome, thanks!
@thatkidjyro7158
@thatkidjyro7158 4 жыл бұрын
Hi tim, Can you do a tutorial on how to plan out a program before you programmer such as making a class diagram from the project idea and spliting things up into classes and objects?
@kimeg7294
@kimeg7294 4 жыл бұрын
Will there be a video about goroutines and channels?
@123aniruddhsiddh
@123aniruddhsiddh 3 жыл бұрын
Getting back to c :)
@piyushmahapatra5402
@piyushmahapatra5402 3 жыл бұрын
Thanks! well,it is not confusing to me.I was simply scared of pointers
@TheEducationWorldUS
@TheEducationWorldUS 4 жыл бұрын
Awesome
@jasonhoman6525
@jasonhoman6525 2 жыл бұрын
Why not just have a function return the new value and reassign to a variable like in Java?
@cuneytyaz9121
@cuneytyaz9121 2 жыл бұрын
when I finished this episodes I ran in the house repeating pointer pointer pointer like psyduck :)
@RushAlvarado
@RushAlvarado 2 жыл бұрын
🍊 new ampersand
@chickenmirchmasala2274
@chickenmirchmasala2274 4 жыл бұрын
Hello from india TIm....I heard u got the job in the microsoft How Is it going?
@ACHTech20
@ACHTech20 3 жыл бұрын
Not in comment section we are launching in reality 😂😂😂
@holthuizenoemoet591
@holthuizenoemoet591 2 жыл бұрын
in the real word, would it be better to just return the string?
@AWriterWandering
@AWriterWandering 4 жыл бұрын
So basically it’s like using the “global” statement in python?
@bigtymer4862
@bigtymer4862 4 жыл бұрын
Keep learning bud
@cheenamaejafar
@cheenamaejafar 2 жыл бұрын
changeValue2() is not even legal but thanks though, I get your point.
@salman0ansari
@salman0ansari 2 жыл бұрын
Pointer pointing to pointer pointing pointer
@vsanwa143
@vsanwa143 4 жыл бұрын
Hey Tim ! Love from India ❤ Could you please make a video on Biometric Identification using ML ? That would be really Helpful !
@tumblrbulbasaur5698
@tumblrbulbasaur5698 4 жыл бұрын
Let's build something with Go, Tim?
@oxyht
@oxyht 4 жыл бұрын
hahaha pointer, pointer, pointer :D
@meizum1738
@meizum1738 4 жыл бұрын
Like 👍
@GmanGavin1
@GmanGavin1 Жыл бұрын
This looks like a weird way of doing global variables. I don't get the purpose.
@zackjames2409
@zackjames2409 4 жыл бұрын
👋
@xhjb4ever
@xhjb4ever 3 жыл бұрын
coming from c, this was not that difficult (you even cleared some things up I didn't understand in c)
@chickenmirchmasala2274
@chickenmirchmasala2274 4 жыл бұрын
hahahahahahahahahahahahahhaahahahahahaha
Golang Tutorial #20 - Structs and Custom Types
18:49
Tech With Tim
Рет қаралды 52 М.
Everything You Need To Know About Pointers In Golang
20:47
Anthony GG
Рет қаралды 30 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 699 М.
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 8 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 61 МЛН
Rob Pike: What Golang Got Right & Wrong
29:23
ThePrimeTime
Рет қаралды 152 М.
A Practical Guide to Pointers in Go
10:05
TomDoesTech
Рет қаралды 4,4 М.
Go Pointers: When & How To Use Them Efficiently
14:09
Anthony GG
Рет қаралды 88 М.
why do void* pointers even exist?
8:17
Low Level
Рет қаралды 395 М.
HTMX & Go with ThePrimeagen | Preview
15:58
Frontend Masters
Рет қаралды 156 М.
This Is The BEST Way To Structure Your GO Projects
11:08
Melkey
Рет қаралды 84 М.
When You Should Actually Use Pointers In Go
16:34
Bryan English
Рет қаралды 15 М.
Golang pointers explained, once and for all
13:49
JamieGo
Рет қаралды 9 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 699 М.