Hell Oh Entropy!

Life, Code and everything in between

Pointers are haard...

This might sound strange but we have only recently, at my insistence started using pointers in our C++ code at work. The reason cited was that pointers are difficult for the average dev to understand. My experience in watching people struggling with them in the past few weeks led me to realize why this is so.

People look for "rules" when they are using pointers, like "if this is the case then use &" and "if that is the case then use *" instead of actually understanding how it would work.

comments powered by Disqus