Home » #coding » Page 2

#coding

Iterator Pattern

The Iterator Pattern also known as Cursor is a behavioral design pattern that provides a way to access elements of an aggregate object (such as a collection) sequentially without exposing the underlying representation of that object. It is used to traverse a container of elements, allowing clients to access its elements without needing to know […]

Iterator Pattern Read More »

Flyweight Pattern

The Flyweight pattern is primarily employed to minimize the volume of object instances and, consequently, reduce memory consumption while enhancing performance. This design pattern falls within the structural pattern category, as it offers techniques for reducing the total number of objects, thereby enhancing the organization of objects within an application. The Flyweight pattern aims to

Flyweight Pattern Read More »

Facade

A Facade is a structural design pattern that acts as an interface to a larger and more complex set of classes, simplifying the interaction with those classes by providing a unified and simplified interface. It hides the intricacies and complexities of the underlying system, making it easier for clients to work with. Computer graphics involve

Facade Read More »

Bridge Pattern

The Bridge pattern is like a blueprint for organizing big classes or groups of related classes. It helps you separate them into two distinct parts: one for their main features (abstraction) and another for how they actually work (implementation). This separation allows you to work on these parts independently, making your code more flexible and

Bridge Pattern Read More »

Abstract Factory Pattern

The Abstract Factory pattern is a powerful design tool that facilitates the creation of families of related objects without specifying their concrete classes. By providing an abstract interface for creating objects, this pattern enables the creation of object hierarchies with consistent structure. In Factory Method, we implemented furniture business to deliver different types furniture. Now

Abstract Factory Pattern Read More »

Java Lambda Expressions

Java Lambda Expressions (a.k.a. lambda functions) have been a game-changer in the world of Java programming since their introduction in Java 8. These expressions provide a concise and expressive way to define anonymous functions, which are functions that don’t have a name and can be treated as values. Lambda expressions are closely related to functional

Java Lambda Expressions Read More »

Spring AOP

Introduction Spring AOP (Aspect Oriented Programming) compliments OOPs as it also provides modularity. But The key unit of modularity in OOP is the class, whereas in AOP the unit of modularity is the aspect.  AOP breaks the program logic into distinct parts (called concerns). It is used to increase modularity by cross-cutting concerns such as transaction management,

Spring AOP Read More »

Multithreading and Synchronization

Welcome to our comprehensive guide on Multithreading and Synchronization! In this page, we will delve into the fascinating world of concurrent programming and explore the essential concepts, techniques, and best practices for effectively managing multiple threads in your applications. Multithreading is a powerful paradigm that allows programs to execute multiple tasks concurrently, thereby utilizing the

Multithreading and Synchronization Read More »

Scroll to Top