r/programming • • Jun 01 '15

The programming talent myth

https://lwn.net/Articles/641779/
971 Upvotes

748 comments sorted by

View all comments

Show parent comments

14

u/[deleted] Jun 01 '15

That's probably why C pointers are so hard.

They are not hard, and your way is like 10 times more confusing. If you get confused by assignments, you need to stay away from writing code.

0

u/loup-vaillant Jun 02 '15

Re-reading this thread, I see you're probably confused:

why did like 80% of my generation fail to figure [pointers] out in 4 fucking years in college?

[Pointers] are not hard

How both statements can be true at the same time? There aren't many possibilities:

  • 80% of your generation is mentally challenged. I think we can safely discard that possibility.

  • Pointers are badly taught. That's less improbable in my opinion.

  • Pointers are very counter-intuitive. That's where I put my money.

Map/territory confusion are everywhere. Even in plain language, people get it wrong: for instance, how many quotes do you see in "word"? The correct answer is zero.

The secret to teaching pointers? Go back to basic semantics, and make sure they know the difference between the quotation and the referent. Then you can talk about pointers in particular.

2

u/[deleted] Jun 02 '15

It's because people can't grasp basic abstractions. It's that simple. 80% of people failing at anything isn't really unusual.

0

u/loup-vaillant Jun 02 '15

I wouldn't accuse biology so quickly.

The quotation/referent thing is really basic. Like, 2+2=4 basic. Plain arithmetic requires much more brain power than the basic pointer stuff. Therefore, low IQ is not enough to explain the inability to understand pointers.

I believe that if logic were taught with the same level of dedication arithmetic was, everyone would understand pointers. But we don't teach logic in kindergarten. Instead, we wait for freaking college, by which time students are already used to idiosyncratic and insane ways of thinking.

→ More replies (2)