…when to include technically-unnecessary code — e.g., variable declarations, superfluous punctuation, block constructs for single statements, values for optional parameters that are the defaults, debugging/validation statements, non-critical error handling, explicitly destroying objects that would otherwise be deleted on exit, labeled NEXT statements, full qualification of objects/methods, unneeded code from templates…
He’s wondering if other Slashdot readers have trouble tolerating their co-workers’ unnecessary codes choices (which he demonstrates with a video clip from Silicon Valley).
So leave your answers in the comments. When do you do include ‘unnecessary’ code in your programs — and why?
Read more of this story at Slashdot.