Easy to say genius … Easy to say genius but you try applying your rules to a huge legacy codebase where pointers are being passed around by copy and you have no idea what owns what. Even smartpointers cannot resolve that problem. Now handles and multiple threads to that picture.
References are … References are similar except they must be initialized when they are created, and need not be de-referenced. However, they also much more dangerous because it’s much harder to determine if a reference actually still references a valid object (you cannot test the pointer address for example) and the behavior of references which have become stale is undefined.
A common newbie mistake is too ume references are easier than pointers – they are not.
nice vids they look …
nice vids they look cool
Easy to say genius …
Easy to say genius but you try applying your rules to a huge legacy codebase where pointers are being passed around by copy and you have no idea what owns what. Even smartpointers cannot resolve that problem. Now handles and multiple threads to that picture.
References are …
References are similar except they must be initialized when they are created, and need not be de-referenced. However, they also much more dangerous because it’s much harder to determine if a reference actually still references a valid object (you cannot test the pointer address for example) and the behavior of references which have become stale is undefined.
A common newbie mistake is too ume references are easier than pointers – they are not.
oh shutup
oh shutup
To beginners …
To beginners they’re not. Also pointer misuse is a major cause of bugs in software. Even pro’s make mistakes with them.
Different Bruce …
Different Bruce actually, though that bruce may have found it.
Pointers are a …
Pointers are a pretty trivial concept that this video makes seem complicated, in my opinion.
Bruce Adcock eh?
Bruce Adcock eh?
If you need this …
If you need this much help to understand these fundamental basics of pointers, please don’t become a programmer. :p
I’m a CS at Ohio …
I’m a CS at Ohio State and I find this to be fantastic, our professor found it yesterday and sent it to everyone in the class.
“That’s all there …
“That’s all there is to it”
Wow, this guy must work on the Windows codebase. Memory leaks galore!
My rules are shorter:
1. For every new, there should be a corresponding delete.
What I need is one …
What I need is one for references.
I finally …
I finally understood it!
After all these years!
Thanks!
Ohhh… thats nice. …
Ohhh… thats nice. Hope u hav understood the concept well and all the best for proceeding concepts… Bye…
BEST PROGRAMMING …
BEST PROGRAMMING VIDEO EVER!!
my teacher actually …
my teacher actually used this video to teach us pointers in class!
cool vid! XD
cool vid! XD
Wonderful!
Wonderful!