Understand the Three Laws of TDD

• 1 min read • Ali Ben Messaoud

Uncle Bob described TDD with three rules in his article The Three Laws of TDD. These laws lock a developer into a cycle that is short but is very crucial...

Read More

Liskov Substitution Principle

• 4 min read • Ali Ben Messaoud

In this article, we will see the Liskov Substitution Principle (LSP), which is the “L” in the SOLID principles. “Subtype Requirement: Let φ(x) be a property provable about objects x...

Read More

Dependency Inversion Principle

• 3 min read • Ali Ben Messaoud

In this article, we will see the Dependency Inversion Principle (DIP), which is the “D” in the SOLID principles. “The Dependency Inversion Principle (DIP) states that High-level modules should not...

Read More

Single Responsibility Principle

• 4 min read • Ali Ben Messaoud

In this article, we will see the Single Responsibility Principle (SRP), which is the “S” in the SOLID principles. “The Single Responsibility Principle (SRP) states that each software module should...

Read More

Open/ Closed Principle

• 5 min read • Ali Ben Messaoud

In this article, we will see the Open/ Closed Principle (OCP), which is the “O” in the SOLID principles. The Open/ Closed Principle (OCP) states that “software entities (classes, modules,...

Read More

Interface Segregation Principle

• 5 min read • Ali Ben Messaoud

In this article, we will see the Interface Segregation Principle (ISP), which is the “I” in the SOLID principles. “Clients should not be forced to depend upon interfaces that they...

Read More

Avoid Null

• 4 min read • Ali Ben Messaoud

How to prevent the famous NullPointerExceptions in Java? This is one of the most important questions for every Java developer to ask independently of their level of expertise. I call...

Read More

Red Green Refactoring

• 2 min read • Ali Ben Messaoud

To execute Test-Driven Development (TDD) properly we need to learn its key methodology Red, Green, and Refactor (RGR). This method consists of 3 phases that are repeated continuously: Red, Green,...

Read More

Docker 103 - Understand Dockerfile Volume

• 3 min read • Ali Ben Messaoud

In this article, we’ll learn how to create a Docker image using Dockerfile and volumes, and we will see why we should not declare Docker or host path volumes in...

Read More

Docker 102 - Docker with Java Spring and Maven

• 6 min read • Ali Ben Messaoud

In this article, we’ll learn how to create a Docker image of a Spring Boot application, using Dockerfile and Maven, and then run the image we’ve created. Docker Guide (6...

Read More