Hacker News new | ask | show | jobs
by wk_end 1062 days ago
If the code passed in a null value before, it was violating the contract the function provided. A component isn't responsible for what happens when you operate it out of spec.

If I were a hardware designer and some changes to an IC I'm working on are going to make the next batch, say, work properly in hotter temperatures than it could before, and one of my coworkers comes and says, "Don't make that change, what if someone using that IC is deliberately operating it out of spec expecting it to fail and now the behaviour is going to change!" I'm going to start polishing up my resume, because I'm working for an organization that employs lunatics. Happily, that wouldn't happen in the hardware world; unhappily, I'm a software developer rather than a hardware designer.

1 comments

Relevant XKCD, "keyboard heating":

https://xkcd.com/1172/