• Refactoring of the “elseif” block code

    Here’s the story. You’ve joined new project and you’ve been provided a source code. You’re so excited and full of energy. Welcome to the real world You’re so excited until… you pull the the code from repository and open a class like this one: Discount value is provided based on order’s items count and order’s […]