News for hackers. Stuff that matters.
Re:How can C Programs be so Reliable? (2008) by Nursie on Thursday December 05, 2013 @06:26PM (#6858159)
They are so simple. It's just the address of the thing it points to.

Maybe it's lost in the mists for me too, but if you don't know your pointers from yout references from your values... how can you code anything?

Re:How can C Programs be so Reliable? (2008) by army on Friday December 06, 2013 @08:46AM (#6860978)
Based on the experience I've had with teaching programmers, most don't have the distinction clearly in their mental models. For most of basic things they might do it can be made to work either way: usually with a bit of fiddling they can make it work. Of course, this doesn't work at all as soon as you start trying to implement data structures.

I've seen some awkward code too from people moving from Java to C++ where either they make everything a pointer, or they use value objects without understanding that they're not references.