Categories
Coding

Stop using arrays for everything

Arrays are a very important element in PHP. We can use them as functions’ arguments, to store and sort a collection of data, etc. They are always there for making our lives easier, but sometimes we tend to use arrays more than we should be.

Categories
Coding

How to deprecate code in WordPress

The codebase of a project is in continuous evolution. We add new features, fix issues, and at some point in the development, we found that some code we wrote in the past is no longer necessary. Under this situation, we may have the temptation of removing this piece of code, but is it right?