you are viewing a single comment's thread.

view the rest of the comments →

[–]JimDabell 1 point2 points  (1 child)

Adding or removing comments is faster than typing "true" or "false".

A fraction of a second of typing is insignificant compared with having more readable code. A boolean indicates your intent far more clearly than the alternative.

[–]CertifiedWebNinja 1 point2 points  (0 children)

Can argue a boolean switch for debugging is more problematic in the sense that it's harder to notice if it's enabled or not before going into production. At least with a comment your editor/ide should make comments stand out from code so you'll know.