Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

When I used to teach CS, I’d tell my students they would need to learn pointers 3 times. First, they’d hear me explain it in a lecture and think they understood it. Then they’d try and implement a linked list and realise they didn’t get it at all, and figure it all out from scratch. Then at some point it would all click and seem really easy.

Lots of stuff is like this. You learn what you do. Sitting in a lecture theatre hearing about pointers, or photography, or DSP, isn’t really learning those things. Some people are definitely better at using their imagination to actually learn things during a lecture. But it’s a long shot at the best of times I think. For everyone.



Pointers finally clicked for me when I started doing things with a normal int and treat it as a memory address. I forgot the details, but I remember making a Stack Overflow post about it. The people on Stack Overflow didn't seem too happy with my program from a software engineering standpoint, not realizing I was just trying to really test some ideas of what pointers actually are.

Found the SO post: https://stackoverflow.com/questions/35379191/cannot-cast-var...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: