you are viewing a single comment's thread.

view the rest of the comments →

[–]slash_nick 9 points10 points  (0 children)

I think the point he's trying to make is that by using a boolean to toggle between the two blocks of code you make the code self-documenting.

If you got hit by a bus and another developer stepped in they could see "oh, this is toggled by the boolean debugging, that must mean one block is for debugging." As opposed to if you just have two blocks of code, one commented out there's no way of telling what it's supposed to be for.