Subash Adhikari

Polyglot Software Engineer Specialising in Serverless and AWS. Thoughts and Ideas.

Remove switch statements using polymorphism

In this post we will use polymorphism to remove switch statements. Inappropriately using switch statements is a sign of code smell. Robert Martin in his book Clean Code says that he limits himself to one switch statement per object type. We will use example of a Customer class. [Read More]

Android clean architecture

One of the primary goals of building software is to meet the business goal. Whether it be a simple shopping list application or a large banking application, they exist to solve a problem. As the software grows in functionality it needs to be able to cope with changing business requirements. [Read More]