Spent a while trying to find a bug in a complicated routine, only to discover it was a bug in a much simpler routine that I'd *assumed* was correct because it was simpler. This happened twice. #programming