3 ms·
Copy-paste errors are easier to detect if the code is lined up properly. The first example would have been fairly obvious if each if-then statement were put on
by skookumchuck 10y ago
Copy-paste errors are easier to detect if the code is lined up properly. The first example would have been fairly obvious if each if-then statement were put on one line instead of two, and then all the clauses would line up. The error would then have stood out.