HorusKol

Articles

CSS Grid Golf

October 14, 2021

CSS Grid requires very little definition to produce a simple layout. Probably even less than you thought.

Money - and how to handle it

August 2, 2021

The obvious choice for handling money in an application is not the correct one.

Running tests and debugging containerized apps in PhpStorm

July 29, 2021

Don't get sunk trying to test and debug applications when using Docker or Laravel Sail.

Laravel 8 database factories for even better testing

November 12, 2020

A quick look at how Laravel 8's class-based database factories help with simpler tests, and how being lazy can speed up your tests.

Fail validation if a parameter is sent regardless of its value in Laravel

October 31, 2020

A surprisingly simple validation rule that invalidates a request if a specific parameter exists.

Convert SVG images in the browser using JavaScript and the Canvas API

August 31, 2020

It is possible to convert an SVG image into PNG, JPEG, or even WebP, in the browser.

Drag and drop elements on touch devices

August 15, 2020

Want to allow users to move elements around a page no matter what device they're using? Here's a quick guide to implementing drag and drop for mouse and touch users.

Renaming your master branch

June 9, 2020

Git lets you rename your branches, but renaming your master branch can be tricky.

Some tips to help speed up Composer install/update

May 27, 2020

Composer taking a while to install/update? It's either time to go and make a coffee, or try these tips to speed it up again.

Live code highlighting in the browser with vanilla JavaScript

March 5, 2020

A cross-platform, vanilla JavaScript text editor that can provide code highlighting (or any other kind of highlighting).