Academy

Latest articles from the academy

White square with the Jest testing framework logo, featuring a maroon crown and connected dots above the word “Jest,” on a red geometric abstract background with the white 40Q logo in the bottom right corner.

Apr 3, 2024 / 4 min to read

Introduction to Unit Testing in JavaScript with Jest

Writing unit tests is really not as difficult as it seems. Let’s see how to do it in JavaScript using Jest. Set up Before we begin, let’s prepare everything we need. Inside a new folder, we’ll initialize npm. In this case, I’m passing the -y flag so it doesn’t ask questions and assigns all default […]

The image shows the white WordPress logo centered on a blue and teal abstract background with circles and gradient shapes, and 40Q in white text in the bottom right corner.

Nov 19, 2023 / 3 min to read

Customize the WordPress Custom Post Type List Using extended-custom-post-types

Creating Post Types in WordPress is often a tedious process. On top of that, many times we have to rely on plugins or additional features within the admin panel to gain control over the columns or the way these post types are displayed. Extended Custom Post Types is a very popular package on GitHub that, […]

Abstract blue background with wavy patterns and circular gradients, featuring the WordPress logo on the left, the Composer logo (a conductor illustration) on the right, and 40Q in the lower right corner.

Jun 1, 2023 / 6 min to read

How to Use Composer with WordPress

Note. This post draws heavily from this excellent article and combines those concepts with other experiences we’ve had using Composer. What is Composer Composer is a dependency manager for PHP. In the same way that npm exists for JavaScript, RubyGems for Ruby, or pip for Python, these dependency managers are responsible for handling all the […]

A colorful illustration of a coding window with lines of code and a checkmark icon next to a yellow paintbrush on a red abstract background.

Feb 21, 2023 / 4 min to read

3 Tips for Writing Clean, Readable, and Maintainable Code

When we are starting our careers, we believe we are going to spend all our time writing code. And while that is not false, it is also not 100% true. The reality is that in addition to writing, we are going to read. We are going to read a lot. We might even read more […]

WordPress and Bootstrap logos on a purple geometric background with abstract shapes and the text “40Q” in the bottom right corner.

Oct 14, 2022 / 5 min to read

Building a User-Friendly Menu in WordPress Without Relying on NavWalker

How many times have we hit our heads against the wall trying to edit a WordPress NavWalker? This class, based on the abstract Walker class, is impractical, and editing menus exactly the way you want is usually a complicated task. To avoid this, we are going to use a Composer package that allows much greater […]

Abstract blue and green background with floating circles, featuring the WordPress logo on the left and the React logo on the right, both in white.

Jul 7, 2022 / 4 min to read

Building a React App Using WordPress as a Headless CMS

We are increasingly used to seeing complex, dynamic, and reactive interfaces. CMS platforms like WordPress make building these types of interfaces a bit harder with the tools they provide by default. This led to the emergence of the Headless CMS concept. In other words, using only the CMS content management tools and consuming an API […]