In this article, we will look at one of the most common (and simplest too) design patterns: Factory method design pattern.
Book review: The Pragmatic Programmer
A pragmatic programmer is the one who deal with situations sensibly and realistically. And this book is to help you to learn the pragmatic programming from the years of experience of the authors in software development.
Design patterns: Singleton pattern
There can be requirements when we need variables to maintain data for the system (like some global parameters) or need to call methods from the class without creating a new instance of the class every time. One solution to these situations will be to use static fields and methods. But with static, you can not inherit the methods or variables from another class or interface. Because of this, you...