3 ms·
Does coding style affect the bug rate? Yes. So it matters. For example, in the world before compiled had warnings for this sort of thing, putting the constan
by shrughes 14y ago
Does coding style affect the bug rate? Yes. So it matters.
For example, in the world before compiled had warnings for this sort of thing, putting the constant to the left side of the equality operator in a conditional reduced the chances of accidentally making it an assignment operator.
Also, the bug rate is reduced the more code you can fit onto a screen without having to scroll. Coding styles that waste fewer lines probably reduce the bug rate.