Background...
For a few years I worked with different APIs delivered by the different vendors. I was also taking part in designing and creating of the APIs for the software that I was working on. In this post I would like to describe some key points, which in my opinion a good API should have and some...
27 January, 2015
10 January, 2015
How to replace "switch" with the polymorphism?
Problem
A few days ago we were discussing the coding standards, that we are going to adhere. One of the points was preventing from creating of the very big conditional statements.
Lets take the "switch" statement into consideration. It is nothing wrong in using this statement until it does one thing,...