Test-Driven Development is a Software development practice, and which helps to write more clean codes. In TDD, we write the test case first for a specific feature. And then we write code of that feature and validate whether the required output is coming or not from that feature. If everything is working fine than refactor the code base, otherwise make effort to get the required output from that feature. That is basically the TDD principle(TDD life cycle)

We can make code coverage as 100% by applying TDD principle to our project. The reason we have 100% code coverage is that…


I hope you guys read my introduction article of design pattern in java. If not then the link is available here Design Pattern in Java. This article does not totally depend on the previous article (Design Pattern in Java). But it has some basic understanding of the background of design patterns. Just remember the Prototype design pattern belongs to the category of creational design pattern

When an interviewer might ask you that sometimes creating objects might be costly. So what is the solution for that in java?. In that case, You have some idea about java, but you don’t have…


I hope you guys read my introduction article of design pattern in java. If not then the link is available here Design Pattern in Java. This article does not depend on the previous article (Design Pattern in Java). But it has some basic understanding of the background of design patterns. Just remember the Factory design pattern belongs to the category of creational design pattern

Most developers consider Factory design patter as the opposite of the Singleton pattern. So the hint is that the singleton is not fit for your scenario then consider the using the Factory Design pattern 😁. Just…


I hope you guys read my introduction article of design pattern in java. If not then the link is available here Design Pattern in Java. This article does not totally depend on the previous article (Design Pattern in Java). But it has some basic understanding of the background of design patterns. Just remember the Builder design pattern belongs to the category of creational design pattern

Most of the time, we use builder objects that are created by using a builder design pattern, without knowing it. The builder Design pattern is used for handling the complex Constructors. What I mean by…


Table of Content

Introduction

Alright, I know many of you know the Java. Right… It is the first language that you got learned when you were studied OOP concepts. So do I. Theses days lots of developers are interesting about REST full applications. Because It helps to deliver the JSON format data to Standalone single page front-end applications(React, Angular, Vue…


I hope you guys read my introduction article of design pattern in java. If not then the link is available here Design Pattern in Java. This article does not totally depend on the previous article (Design Pattern in Java). But it has some basic understanding of the background of design patterns. Just remember the Singleton design pattern belongs to the category of creational design pattern

This is the most widely used design pattern in the java world because it is very easy to implement and it solves lots of real-world problems. This design pattern guarantees:

  1. only one instance is created


Before going further first look at why we actually need design patterns. so if we have to solve the problem with a bunch of developers, they actually use their own coding patterns because there is no restriction. But what if we have a common vocabulary set to solve that particular problem. which might have easy to communicate with different developers with that common vocabulary set. That is where the design pattern came in play. …


Before getting started the basic setup of redux with react, we need to understand a few concepts:

  1. Action: specify the payloads of information that send data from your application to your store.
  2. Reducer: specify how the application’s state changes in response to actions sent to the store. Remember that actions only describe what happened, but don’t describe how the application’s state changes.
  3. Store: it is maintaining the application level state tree. It stores the whole states in react application.

So why we need Redux ???

Redux is a state management tool. Which help us to manage the state in application level(globally). If we are not using…

Rasika Weragoda

Software Engineer @ hsenid mobile

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store