Why You Should Use the WordPress HTTP Functions to Make API Requests
Sometimes your WordPress site needs to talk to other services around the web. This almost exclusively happens using the HTTP protocol. A common example is when your WordPress installation contacts… Read more
Examples of Refactoring PHP Code for Better Readability
Examples of Refactoring PHP Code for Better Readability Refactoring code is when you restructure existing code without changing its external behavior. Basically your aim is to make “bad” code better… Read more
Get Started with PHP Static Code Analysis
Imagine a world where your IDE or code editor detected problems before you even ran the code. Imagine if whole categories of errors could be automatically identified and easily eliminated… Read more
The Ultimate Overview of the WordPress Block Editor (Gutenberg) for Developers in 2022
I’ve been loosely following the noise and #wpdrama surrounding Gutenberg for as long as it has been around and honestly for the most part I’ve had negative feelings around it… Read more
How to Use Xdebug for Advanced PHP Debugging
You could just debug your PHP code using dump debugging functions such as error_log, print, and var_dump, and let’s be honest, we’ve all done it a lot! While helpful sometimes,… Read more
PHP and cURL: How WordPress makes HTTP requests
cURL is the workhorse of the modern internet. As its tagline says, cURL is a utility piece of software used to ‘transfer data with urls‘. According to the cURL website,… Read more
Vue vs React: Which is the Best JavaScript Framework in 2021?
React or Vue.js, which JavaScript framework should you choose? React powers WordPress’ new editor while Vue.js is a popular framework in the Laravel community. In this post we’ll go over… Read more
How to Create Custom WordPress Editor Blocks in 2021
The WordPress block editor (previously titled Gutenberg) includes a new way to add content to your WordPress posts, pages and soon all content on your WordPress site. It marks WordPress’… Read more
How Unicode Works: What Every Developer Needs to Know About Strings and 🦄
What is Unicode? Waaay back in 2003 Joel Spolsky wrote about Unicode and why every developer should understand what it is and why it’s important. I remember reading that article… Read more
How We Use PhpStorm for WordPress Development
Many of the Delicious Brains team use PhpStorm, the PHP IDE from JetBrains, as their go-to code editor, development environment, and all-round PHP best friend. Some on the team swear… Read more
Using JavaScript FileReader to Upload Large Files in Chunks and Avoid Server Limits
If you’ve spent any amount of time messing with PHP config files to get a file to upload, you know that uploading large files can be a real pain. You… Read more
Set Up Visual Studio Code and xDebug as the Ultimate Editor for WordPress Development
If you keep up with the many text editors and developer tools available, you may have heard of Microsoft’s Visual Studio Code. VS Code is a free, open source code… Read more
SQL Query Optimization for Faster WordPress Sites
You know that a fast site == happier users, improved ranking from Google, and increased conversions. Maybe you even think your WordPress site is as fast as it can be… Read more
Inertia.js: Building Single-Page Apps the Old Way
Update: We’ve written a newer, more detailed tutorial on Inertia using Laravel Jetstream. I’ve been building Laravel apps for years now. From large, data-heavy apps like Mergebot (RIP 😢) and… Read more
PHP Scoper: How to Avoid Namespace Issues in your Composer Dependencies
Composer. If you’ve worked with PHP for any period of time you’ve likely heard of or used Composer. We’ve written about it whole bunch on the blog before, and it’s… Read more
Optimizing Laravel Part 2: Improving Query Performance with Database Indexing
This is article 2 of 4 in the series “Optimizing Laravel” In my last article we looked at some simple commands and some basic code tweaks we could use to… Read more
Optimizing Laravel Part 1: The Basics
This is article 1 of 4 in the series “Optimizing Laravel” Laravel is a very popular PHP framework these days and can be used for a range of web applications,… Read more
Vue vs React: 2018 Edition
Just over a year ago I wrote a 🔥-y piece comparing Vue.js vs React. Today, the argument about these two JavaScript frameworks is as alive as ever, but over the… Read more
Improve Page Load Time For Your WordPress Site with WP Offload S3: A Case Study
One of the great things about working at Delicious Brains is working on products that I use and love outside of work. I was a WP Migrate DB Pro customer… Read more
Getting into Go for PHP developers
How many programming languages do you regularly work with? But you probably have your favorites. Myself, I’ve built my career on PHP and JavaScript. I’m always looking to learn something… Read more
The WordPress Developer’s Guide to ES2015 (ES6)
The WordPress developer community is currently abuzz with JavaScript talk, specifically around which JavaScript framework to use in WordPress core. Regardless of which framework is chosen, it’s clear that WordPress… Read more
Building a Command Line Daemon in PHP to Emulate AWS SQSD
Sometimes when you’re building a project there are parts of the architecture that exist on production that don’t exist on your development machine. Those missing parts (like proprietary software that’s… Read more
Refactoring JavaScript: How to Avoid Technical Debt While Working with Legacy Code
Do you have a legacy JavaScript codebase you’re avoiding refactoring? So does WordPress. If you’ve been paying attention to WordPress core lately, you may have noticed that there has been… Read more
Dependency Management and WordPress: A Proposal
‘Dependency hell’ is a problem faced by all software, and it has been rearing its ugly head in the WordPress space over the last few years with more and more… Read more