Design Pattern

How to create a Singleton class in Kotlin

Reading Time: 3 minutes What is Singleton Class? First of all, let us discuss what is singleton class is. We can define a singleton class in such a way that only one instance of the class can create and we can use that instance everywhere. We can use a singleton class where we need only one instance of the class like NetworkService, DatabaseService, etc. Generally, it is done because Continue Reading

Singleton Pattern: The One of a Kind Design Pattern

Reading Time: 3 minutes Hey, coders in this blog we are going to talk about Singleton Pattern, and believe me, Singleton Pattern is one of the easiest patterns among all the design patterns in terms of its class diagram. Singleton Pattern has an interesting mechanism in the way it is implemented. So before implementing the singleton pattern in our code first let’s dive into its definition which states that  Continue Reading

“Brief Description On Reactive System/Manifesto”

Reading Time: 2 minutes What is Reactive System ? A reactive system is an architecture that allows multiple individual applications to be merged into a single unit. Responding to their surroundings, being aware of each other. The first formalization of this term passed with the creation of the “Reactive Manifesto” in 2013. By Jonas bungle WHO, By transcending with many of the brightest minds within the distributed systems industry. Continue Reading

Design Patterns in Rust Programming

Reading Time: 3 minutes The Design Patterns are programming language independent strategies for solving a common problem. By using design patterns, you can make your code more flexible, reusable, and maintainable. These solutions were obtained by trial and error by numerous software developers. Types of Design Patterns There are following types of design Patterns in Rust for solving our problems : Behavioural Creational Behavioural Patterns Behavioural design pattern are design patterns that Continue Reading

Factory design Pattern

Reading Time: 2 minutes Hi guys, I hope you are doing good. In this blog, we will be talking about one of the creational design patterns which is Factory Pattern. The creational design patterns are concerned with the way in which objects are created. In factory design patterns, we basically define an interface or abstract class for creating an object but objects creation decisions like for which class client Continue Reading

Proxy Design Pattern in JAVA #6

Reading Time: 2 minutes In this blog, we will discuss Proxy Design Pattern, its example, and how it is different from the other design patterns. But, it’s important to have an understanding of the design patterns first. You can refer here. What is a Proxy A Proxy is something that has the authority to do some activity on behalf of the original object. For example, when you are busy Continue Reading

Builder Design Pattern in Java #4

Reading Time: 2 minutes We have already discussed two of the Creational Design Pattern that is Singleton and Factory. Here, we just come up with another type of Creational Design Pattern that is Builder. What is Builder Design Pattern? Builder Design Pattern is a creational Design Pattern which is used to create the complex object. Its main purpose is to : 1) Segregate the object creation part in a separate Continue Reading

Beginner’s Guide to Design Patterns in DAML

Reading Time: 6 minutes DAML is an open-source language used to write distributed applications quickly,concisely and correctly. It runs on leading blockchain platforms like Hyperledger Sawtooth , fabric and Corda. It is used to build smart contracts for distributed ledgers and provide us with ability to focus more on business workflow instead of the blockchain implementation. In our previous blogs, Building Powerful Smart Contracts, Getting started with building Templates Continue Reading

Shims: An Overview

Reading Time: 3 minutes With the prevalence of 64-bit operating systems, many applications have become 64-bit compliant. But, there is a large group of existing native applications that still run in 32-bit compatibility mode on 64-bit operating systems. While integrating 64-bit applications with 32-bit applications, we face numerous compatibility challenges relating to the size of the data type, address, pointers, binary format, and runtime dependencies. The 64-bit applications cannot Continue Reading

Let’s look at the Builder Pattern in Java

Reading Time: 5 minutes In this blog, we are going to look at what the Builder Pattern is and how does it help us construct objects of classes easily. But before understanding that, we need to understand why did we come up with the Builder Pattern in the first place. So, let’s discuss the problem statement due to which the Builder Pattern came into existence.

Scala: Facade Design Pattern

Reading Time: 2 minutes Hi Everyone, In our previous blogs, we have discussed several Structural design patterns i.e., Decorator design pattern, Adapter design pattern and Proxy design pattern. In this blog, we will be discussing Facade Design pattern and will try to implement it in Scala. Problem Statement: We recently had a tour to Udaipur from our office and to organize it, we inquired a travel agency and asked Continue Reading