Skip to main content
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)
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)
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

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
CentOS for web developers

Today I'm angry with the world. Why didn't anyone tell me Red Hat had a decent operating system? I have had to deal with a team CentOS 7 and I leave some notes here just for reference, and I'll complete them with some difficulties. The profile will be of web developers. Let's go!.

Jose CerrejonAbout 1 minDeveloperDeveloper