Hacker News new | past | comments | ask | show | jobs | submit login

Several years ago, computers running Win9X in the company I worked for would stop booting, complaining about missing loader or somesuch. IT was puzzled and couldn't figure out what was going on - no data was missing and hardware seemed fine. A windows repair would fix it until it happened again a few weeks later with someone else.

This happened for a year or so until I was making changes to a code I had written in the past, in a method that would delete all files from a temp folder it had created. I noticed a rare case where it could fail to get the folder name and clean up non-recursively the drive root instead (wiping some windows boot files and mostly nothing else).

I then learned why you validade arguments and check return codes.




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

Search: