Category: Refactoring

  • Escaping the if-else nightmare in Java

    Introduction As a programmer, eventually, you will have to write programs that require multi-if-else statements. When you will start writing such code you will quickly notice that big if-else blocks of code are not really readable and maintainable. In this article, I will analyze this problem based on the hypothetical problem we are trying to…