A better explanation of the Liskov Substitution Principle

Short version: If X inherits from Y, then X should pass all of Y’s black box tests. I first encountered this idea at SPLASH 2021. The longer explanation A bit of background In A Behavioral Notion of Subtyping Liskov originally defined subtyping in inherited objects as follows: … » Hillel Wayne | hillelwayne.com

8 de noviembre de 2023 · 1 min · 53 palabras · Nacho Cano

What is SOLID? Principles for Better Software Design

The SOLID principles are a set of guidelines for writing high-quality, maintainable, and scalable software. They were introduced by Robert C. Martin in his 2000 paper “Design Principles and Design Patterns” to help developers write software that is … » ashutoshkrris | freecodecamp.org

3 de mayo de 2023 · 1 min · 43 palabras · Nacho Cano

Pub/Sub in Redis – How to Use the Publish/Subscribe Messaging Pattern

When you’re working on an application that needs to be easily maintainable, scalable, and performant, the Publish/Subscribe messaging pattern is a good choice. The idea behind it is simple, but powerful. We have senders called publishers. Their sole … » freeCodeCamp.org | freecodecamp.org

29 de abril de 2023 · 1 min · 43 palabras · Nacho Cano

From Problems to Solutions: Understanding Design Patterns

An interesting fact in software development is that you are almost always not the first person to… » DEV Community | dev.to

29 de marzo de 2023 · 1 min · 22 palabras · Nacho Cano

How to eliminate if-else chain, for long life software

Motivation All programing principles and paradigms aim to enhance code readability and… » DEV Community | dev.to

18 de octubre de 2022 · 1 min · 17 palabras · Nacho Cano

Fixed Partitions

Keep the number of partitions fixed to keep the mapping of data to partition unchanged when the size of a cluster changes. » martinfowler.com | martinfowler.com

23 de agosto de 2022 · 1 min · 26 palabras · Nacho Cano

SOLID Principles

Solid Principles Object Oriented Design principles The following link contain examples for every… » DEV Community | dev.to

24 de noviembre de 2021 · 1 min · 18 palabras · Nacho Cano

Adapter Pattern vs. Bridge Pattern

The Adapter pattern and the Bridge Pattern have brought along a lot of confusion. In this post we’re… » DEV Community | dev.to

4 de octubre de 2021 · 1 min · 23 palabras · Nacho Cano

Design Patterns: Composite

Composite is one of the easier patterns in this series, but this does not mean it’s not popular. In… » DEV Community | dev.to

6 de septiembre de 2021 · 1 min · 24 palabras · Nacho Cano

Gateway Pattern

An object that encapsulates access to an external system or resource » martinfowler.com | martinfowler.com

11 de agosto de 2021 · 1 min · 15 palabras · Nacho Cano