News for hackers. Stuff that matters.
Re:Recommendations about coding in C++ by skookumchuck on Sunday February 19, 2017 @02:31PM (#13681446)
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.

There are no comments on this comment yet.