According to anti-if campaign it is a best practice not to use ifs in our code. Can anyone tell me if it possible to get rid of the if in this piece of code ? (switch is also
Make an associative data structure. Map in Java, IDictionary in C#. Initialize it at the beginning of time, and then ...
Map
IDictionary