The switch..case Mammoth
As a Java developer, I think that there isn’t anything uglier than a piece of code having in its middle a switch with 43 cases. Whenever I’m seeing something like this, I remember the Windows desktop applications of my beginnings. C++ was already the programming language at that time but most of the developers were writing C code and compiling it with the Borland or Microsoft C++ compiler.
Read the full article here