How to Easily use Factory Design Pattern in Java

How to Easily use Factory Design Pattern in Java

Hey, Tea Lovers! Let me continue our design pattern series by adding this post. The Factory Design Pattern or Factory Method Design Pattern. It is one of the widely used and easy-to-understand Design patterns. It’s an effortless yet effective way of hiding object creation complexity. That’s why it is under the creation pattern category. So let’s jump right into it. Prerequisite to knowing Factory Design Pattern Before understanding what a factory design pattern is, you need to understand what superclass and subclass are. I am pretty sure you are aware of this detail, if not, the following section describes it in brief. if you already know it, you can skip to this part ...

August 5, 2022 Â· 6 min Â· Imran Shaikh
Singleton Pattern In Java One for All Hero (1) (1)

Singleton Pattern In Java: One for All Hero

Hey, Tea lovers! Today I will talk about the One for All power. Singleton Design Pattern in Java. This post will be the start of the series on Design Patterns in Java. The Singleton pattern is the most basic and easy-to-understand design pattern there is. So it makes a good starting point in the journey of design patterns. Let us jump right into it. What is Singleton Pattern and Object By definition, the singleton pattern is a design pattern that restricts the class to initiate only once. This means it can only make only one object of the class. And this pattern is a base pattern of other design patterns as well. Such as Factory Pattern, Builder Pattern, or Prototype Pattern. Don’t worry we will convert them in the upcoming post. So please subscribe to our website. ...

July 11, 2021 Â· 5 min Â· Imran Shaikh
The 3 Stages of Microservice- Divide, Conquer, and Chaos

The 3 Stages of Microservice: Divide, Conquer, and Chaos

Hey, Tea Lovers! Today let’s talk about a hot topic in the market, Microservices. We will be discussing how microservices are very simple things and we were doing the basic requirement of it for quite a long time without realizing it. Then I will also share with you what I mean by Chaos in Microservices. Software Development’s First Step Towards a Solution is… If you have noticed, whatever problems we try to resolve in the software development process, the first thing we do (and must do) dividesthe problem into smaller ones. The smaller the problem gets, to an extent, the easier it is to solve or find a solution. Divide and Conquer is a very effective and must-do step in every type of industry’s problem. If you think about it, almost all things, complex or easy, are built one step at a time and not whole at once. ...

May 9, 2021 Â· 8 min Â· Imran Shaikh