News for hackers. Stuff that matters.
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.
Re:Programming like a Pirate (Alt+Shift+M) by BruceIV on Wednesday December 05, 2012 @09:30PM (#4879964)
Thanks, good catch (my code probably would have been better if I had an actual use-case instead of a contrived example).