Quick takes from developers at work.
Tips, fixes and short write-ups on what developers ran into this week, in their own words.
Adapter Pattern comes under structural type design pattern and is used for making communication between two incompatible classes.
In this Article we will Learn About Front controller Design Pattern.Front controller is Part of Presentation Tier Design Patterns.
This blog defines design pattern in C#. Design Patterns are categorized into 3 types - Creational Design Patterns, Structural Design Patterns., and Behavioral Design Patterns.
Decorator Design pattern is part of Structural Patterns from Gang of Four(GoF) Design patterns.it is a widely used structural Pattern. It dynamically adds the functionality to an object at runtime without affecting the other objects. It adds further answerability to an object by Bundling it.
This blog is not to discuss Microservices and DevOps but to highlight why they both are required to be embraced simultaneously to make each other succeed in any system.
In any industry, slants by one means or another mirror individuals' ordinary needs and behavior. This endless procedure of adjustment tails us wherever we go?—?and portable application improvement isn't an exemption.
When we inject a dependency as Lazy<T>, we delay the construction of part of the object graph either for functional or performance reasons. Moreover, Lazy<T> will be automatically injected, as long as T is registered with the DI container.
This demo is based on a traditional implementation approach: We have a Product class and it has a method which takes the discount and based on some business logic it applies the discount on the product. Product service will interact with database using ProductRepository. If you will notice ProductService has dependency on 2 concrete classes i.e.
Dependency Injection is one of the SOLID" principles which helps to decouple the code by making sure that we depend on abstractions not on implementation of concrete classes.
Factory Design Pattern is a type of Creational Design Pattern. Creational Design Pattern deals with creation of object such that they can be decoupled from their implementing system. Using this design pattern it is very easy to decide which objects needs to be created for a given scenario.
Here we have an Employee class which has 3 properties: Name, Address and EmployeeDepartment . We want to get the bonus of employee and the calculation is done based on the department the Employee belongs to. In real time there will be some complex logic to calculate the bonus, for example purposes I am just returning some values.
Prototype Pattern in C# comes under the creation type design pattern. It is used for creating duplicate objects or for cloning an object. You can create prototype instance.
In this blog you will learn about active events. Active Events is a design pattern yours truly invented several years ago. It features some unique traits, since it allows you to completely decouple your different components into modules and plugins.
In this blog, I will explain the concept to design a traffic light system, using a Design Pattern like State Design Pattern.
This blog is intended to explain the concept of good and bad things about Singleton Design Pattern.
In this article you will understand what are the cross cutting concepts and how they are used in an application.
In this blog you will learn about Singleton Design Pattern with Thread Safety.
This blog is written considering the readers have at least minimal knowledge of Agile.
In this blog we will learn when we should use the adapter in Design patterns.
In this blog we will learn how to returns types for methods in repository pattern.
In this blog you will learn how to Stateless Path Drawing Based on Incoming Data.
This blog will show you how to Save resources by reusing objects.
The factory design pattern consists in a class responsible for creating instances of the requested types. It solves the problem of having decisions all over the place to decide what type it should create.
Everything on Design Patterns & Practices, not only its blogs: the Design Patterns & Practices page →
Write a blog post and earn +250 SHARP when it is approved.
Write a blog