Re:Programming like a Pirate (Alt+Shift+M)
by qu4z-2 on Tuesday December 04, 2012 @08:38PM
(#4874419)
The main point is that when you realise you forgot to set reindeerCount = 0. If closing the workshop is the only situation in which you fire all the reindeer, it's probably fine. If you need to fire the reindeer in other situations, you now need to manually fix the code everywhere.
[ Parent
| on HN ]