Category: programming
-
Rules on creating patterns in php for the WordPress block editor
Creating patterns programmatically for a WordPress theme using blocks is incredibly hard and frustrating for so many reasons. Even AIs struggle – and they have access to so much more than we do, so with the help of GPT 5 and days and days of struggle (back and forth coding) it came up with this.…
-
How to Write and Test Code for PHP: Master Standard and Advanced Test Frameworks
Some programmers write code in a random kind of way as they don’t have clear goals in mind for whatever it is they’re writing. This is fine if you’re working on something new and are not sure which direction it’s headed, but for a serious application, writing test classes for every major part of your…
-
Getting Started with Laravel 10: Your Quick Guide
[NOTE: Laravel is updated every year, so Laravel 11 came out in 2024 and Laravel 12 in 2025. It’s usually fairly easy to update to the next version of Laravel, so you needn’t worry about the version you start with as long as it is fairly recent – up to 2 versions ago is usually…
-
Object Oriented Programming using PHP and Design Patterns: Efficient Techniques Explained
Introduction: The Evolution of Object-Oriented Programming and Design Patterns When I first started programming in 1981, the concept of software design patterns was not yet established. It was not until 1987 that Kent Beck and Ward Cunningham introduced the idea, and only in 1994 did the seminal book Design Patterns: Elements of Reusable Object-Oriented…
-
The Complete Guide to Building Your Own ChatGPT: Achieve Full Control and Customization
In recent years, chatbots powered by language models like ChatGPT have revolutionized the way businesses and individuals interact with technology. With their impressive ability to understand and respond to human input, these models have become integral in various applications ranging from virtual personal assistants to customer service platforms. For those seeking complete control over their…
-
Why I Chose Digital Ocean For My Software Hosting Platform
I’ve been programming since 1983 when I wrote an accounting app for my first business (they were even called ‘apps’ back then – the holy grail was to write a ‘killer app’ – as it still is today). I went from a BBC Model B with 32k RAM, to an Atari 502 ST, to a Windows…