|
Danny77uk (November 30, 1999 at 12:00 am)
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.
Danny77uk (November 30, 1999 at 12:00 am)
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 assume references are easier than pointers - they are not.
Danny77uk (November 30, 1999 at 12:00 am)
oh shutup
Danny77uk (November 30, 1999 at 12:00 am)
To beginners they're not. Also pointer misuse is a major cause of bugs in software. Even pro's make mistakes with them.
L337Cthulhu (November 30, 1999 at 12:00 am)
Different Bruce actually, though that bruce may have found it.
GRAHAMAUS (November 30, 1999 at 12:00 am)
Pointers are a pretty trivial concept that this video makes seem complicated, in my opinion.
CKtheFat (November 30, 1999 at 12:00 am)
Bruce Adcock eh?
NuclearFriend (November 30, 1999 at 12:00 am)
If you need this much help to understand these fundamental basics of pointers, please don't become a programmer. :p
L337Cthulhu (November 30, 1999 at 12:00 am)
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.
marcoskirsch (November 30, 1999 at 12:00 am)
"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. |