Hacker News new | ask | show | jobs
by AndreyKarpov 3173 days ago
Continue

The Evil within the Comparison Functions - https://www.viva64.com/en/b/0509/

Annotation. Perhaps, readers remember my article titled "Last line effect". It describes a pattern I've once noticed: in most cases programmers make an error in the last line of similar text blocks. Now I want to tell you about a new interesting observation. It turns out that programmers tend to make mistakes in functions comparing two objects. This statement looks implausible; however, I'll show you a great number of examples of errors that may be shocking to a reader. So, here is a new research, it will be quite amusing and scary.