An interesting issue with my Drupal CI/CD process.

While working on another article, I finally hit the point where I really REALLY wanted to put smaller images in the overall article view, but to be able to click on the image and have the image show up full-sized. Such is the pain-point of including screenshots in an article. So, I did some checking, and found the Colorbox plugin.

A major change in how I work with Laravel

I have been a PHP programmer for years, having used it without frameworks, to frameworks like Zend Framework (now rebranded as Laminas) and Laravel, to custom in-house frameworks. At the same time, I went from using it with JavaScript in its various versions, to using the jQuery library with jQuery UI and various add-ons like DataTables.

MongoDB tricks for the Laravel user

Rather than a standard blog entry, which mostly remains unchanged after creation, this is going to be a living document of MongoDB tricks which may be useful to other developers because they are useful to me. These are all utilized within the mongosh utility.

Basic commands

Here are some basic commands which show the databases, the collections and do basic queries.

Legacy code and Test Driven Development (Part 2)

Yesterday, I wrote about legacy code and how it really was not possible to initially do test driven development, aka TDD. In this post, I will detail a strategy which I feel is good at explaining how to go about testing. I make no guarantees that this is the best way to go about it (please feel free to suggest other tricks you might use), but it works. But these are useful for me in porting Medusa V2 code to Medusa V4 (long story about why not V3, but there are reasons).

Legacy code and Test Driven Development

I am sure many of us have faced the task of trying to do test driven development (TDD) on a legacy codebase. I myself am facing such a challenge, with several tens of thousands of lines of code in a Laravel project which I am helping maintain and is around a decade old. And being severely behind in the packages it uses, the time has come to give the code some TLC, and update it to use the most recent versions of those package (for example, we are moving from Laravel 5 to 12).