Tag Archives: Design Patterns

Minimal APIs – Clean Architecture

By | 05/06/2024

In this post, we will see how to implement Clean Architecture with .NET Core Minimal APIs, enabling us to build applications that are both efficient and easy to maintain.But first of all, what is the Clear Architecture?Clean Architecture, proposed by Robert C. Martin (Uncle Bob), is a design philosophy that emphasizes the separation of concerns… Read More »

Design Patterns – Decorator

By | 11/10/2023

In this post, we will see what the Decorator Pattern is and how we can implement it.But first of all, what is the Decorator Patterns?From Wikipedia:“In object-oriented programming, the decorator pattern is a design pattern that allows behavior to be added to an individual object, dynamically, without affecting the behavior of other objects from the… Read More »

C# – Big O notation

By | 08/02/2023

In this post, we will see what Big O notation is and how to use it to optimize our algorithms.But first of all, what is Big O notation?From Wikipedia:“Big O notation is a mathematical notation that describes the limiting behaviour of a function when the argument tends towards a particular value or infinity. Big O is a member of a family of notations invented by Paul Bachmann,… Read More »

Design Patterns – MVVM in SwiftUI

By | 14/07/2021

In this post, we will see how to implement MVVM pattern in SwiftUI.But, what is MVVM pattern?From wikipedia:“Model–view–viewmodel (MVVM) is a software architectural pattern that facilitates the separation of the development of the graphical user interface (the view) – be it via a markup language or GUI code – from the development of the business logic or back-end logic (the model) so that the view is not dependent on any… Read More »

Design Patterns – Command

By | 31/03/2021

From https://en.wikipedia.org/wiki/Command_pattern:“In object-oriented programming, the command pattern is a behavioral design pattern in which an object is used to encapsulate all information needed to perform an action or trigger an event at a later time. This information includes the method name, the object that owns the method and values for the method parameters.”In a nutshell, we can use the Command Pattern to encapsulate… Read More »

C# – TDD

By | 06/01/2021

In this post, we will see how to create a simple Console application (a calculator), using TDD.But first of all, what is TDD?From Wikipedia:“Test-driven development (TDD) is a software development process that relies on the repetition of a very short development cycle: requirements are turned into very specific test cases, then the code is improved… Read More »

Design Patterns – Singleton

By | 21/10/2020

From Wikipedia:“In software engineering, the singleton pattern is a software design pattern that restricts the instantiation of a class to one ‘single’ instance. This is useful when exactly one object is needed to coordinate actions across the system. The term comes from the mathematical concept of a singleton.“ In this post, we will see how to implement this pattern in a .NET Console application. We… Read More »

C# – SOLID Principles

By | 29/04/2020

In this post, we will see what SOLID means and how to implement it using C#. SOLID is a mnemonic acronym for five designers principles that help us to write software more understandable, easier to maintain, flexible and easier to extend.The five principles are:Single responsibility principleOpen/closed principleLiskov substitution principleInterface segregation principleDependency inversion principle  SINGLE RESPONSABILITY… Read More »