Zero, one, two, Freddy’s coming for you

Joined
Aug 15, 2019
Messages
13
Programming Experience
Beginner
This post continues the series of articles, which can well be called "horrors for developers".

This time it will also touch upon a typical pattern of typos related to the usage of numbers 0, 1, 2. The language you're writing in doesn't really matter: it can be C, C++, C#, or Java. If you're using constants 0, 1, 2 or variables' names contain these numbers, most likely, Freddie will come to visit you at night.

Go on, read and don't say we didn't warn you 😉: Zero, one, two, Freddy’s coming for you
 

Skydiver

Well-known member
Joined
Apr 6, 2019
Messages
922
Location
Virginia Beach, VA
Programming Experience
10+
Darn it. I wasted my free Medium read on that post? I can see the problem as a common problem, but I'm not seeing a way to proactively solve it. I can only see a reactive way of solving it by using code reviews and tools like the one you are hawking.
 
Top Bottom