4 ms·
The actual problem there is that developer two checked something in without thinking about it, reading it, or examining the diffs of the change. If you had a c
by jomar 13y ago
The actual problem there is that developer two checked something in without thinking about it, reading it, or examining the diffs of the change.
If you had a coding convention of always using braces in if statements, you might be insulated from this particular symptom or instance of the problem, but you still have the underlying problem that people are doing things without thinking.
- qznc 13y ago"you still have the underlying problem that people are doing things without thinking" You can solve this problem?
- zimpenfish 13y agoWhy not take advantage of every safety net you can? People are fallible, mistakes get made.
- loup-vaillant 13y agoBecause if you do, the safety net will collapse your circus tent by their sheer weight. The actual argument has been made in sibling comments: braces are verbose, and the mistake we speak of is exceedingly rare in practice. For simple one-liners, the verbosity costs more than the lack of safety net.