Question of the day:

nhirata

If there are developers that think that dealing with pointers (allocation, deallocation, referencing) is easy, then why is there so many software applications that crash due to these pointer issues?

Surely, they should be able to check for null exceptions and test for these in their unit test cases before handing off to QA at the very least, no?  After all, isn’t unit tests suppose to check for unexpected values into the functions?  Maybe I’m just simplifying the situation, because I do not understand the reason for these unnecessary crashes that could have been caught way earlier during development.

This is one of the reasons why I state that dealing with pointers is hard.  Not necessarily because of the concept behind them, but also typos and overlooks, etc.

Filed under: Uncategorized