Yes, making the code robust in the face of (perhaps rare) environmental conditions, such as a power failure or the user pressing CTRL-C while the program is running can be surprisingly tricky to get right. Two examples I remember are:
In reply to Re^2: "open" Best Practices
by eyepopslikeamosquito
in thread "open" Best Practices
by haukex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |