Skip to main content
SOLID principles PHP Edition. Today, Dependency Inversion Principle
Horse on top of stones with humans on the ground
Dependency Inversion Principle. Generated with AI and modified later.

Finally, we reach the last principle of the SOLID series. The Dependency Inversion Principle is the most complex of all, but I'll try to explain it in a simple way.


Jose CerrejonAbout 2 minDeveloperPHPSOLIDDeveloperDesign Patterns
SOLID principles PHP Edition. Today, Liskov Substitution Principle
Liskov Substitution Principle
Liskov Substitution Principle. Generated with AI.

In the noble art of coding, you should remember the SOLID principles always. Sometimes, I forget some of them, so here is a brief explanation of each principle:


Jose CerrejonAbout 2 minDeveloperPHPSOLIDDeveloperDesign Patterns
Dependency injection pattern explained like you're 5
dep injection
Why did I choose that example for explaining dependency injection?. Generated with AI.

Today I was asked this question in a job interview, and I found it to be a very simple way to explain dependency injection. Here's the explanation I gave, a bit more detailed (I'm sure it blew my interviewer's mind):


Jose CerrejonLess than 1 minuteDeveloperDeveloperpattern
Tuples Vs Lists on Python
Tuples Vs Lists
Tuples Vs Lists. Generated with AI.

tuples and lists are two types of data incorporated in Python that are used to store collections of elements. Although they share some similarities, they also have key differences. Let’s look at them:


Jose CerrejonLess than 1 minuteDeveloperPythonDeveloperTuplesListsComparison
How I migrated from PHP to Vuepress 2 (Part II)
Alt
Generated by OpenAI's DALL-E and modified later.

This is the second part of the series of articles about how has been the experience of migrating a blog made in PHP + MySQL, to a static one using Vuepress 2. Here I talk about the old code structure and the technology used. Let's go!


Jose CerrejonAbout 3 minDevOpsDeveloperPHPVuepress
How I migrated from PHP to Vuepress 2 (Part I)
Alt
This is the only use of AI you will see in this article. Generated by OpenAI's DALL-E and modified later.

It's been 3 years since my last post here. I have been busy with my work and other projects. The new focus I want to give to the blog is going to be a bit different. Less Raspberry Pi (I will tell why later) and more technical.


Jose CerrejonAbout 4 minDevOpsDeveloperPHPVuepress
Prettier - Code formatter with PHP support on VSCode
prettier
prettier

Just a quick note: To get php support when you type 'format document' on the Command Palette, just run the next commands:


cd ~/.vscode/extensions/esbenp.prettier-vscode-x.x.x/ # x.x.x is the current version of the extension
npm install @prettier/plugin-php

Jose CerrejonLess than 1 minuteDeveloperDeveloper