Using custom HTML attributes to define CSS state

TL;DR If an element should only have one state at a time, don't use classes, use custom attributes. <div class="tile" data-theme="dark">...</div> .tile[data-theme="dark"] {...} The old way Those of us who have been using off-the-shelf CSS frameworks for a few years will be familiar with the idea of using classes to define an element's properties. For … Continue reading Using custom HTML attributes to define CSS state

The state of (my) web development in 2019

Seeing as it’s getting near the end of 2019 already (don’t get me started), this seems like a good opportunity to take stock of where I am right now in terms of my web development, looking at what tools and techniques I use. Of course, this doesn’t mean I’m “right”, or that this list won’t … Continue reading The state of (my) web development in 2019

More scenery

In my latest few trips to the garage I've been working some more on various aspects of the scenery. The roads have now been painted in (though still waiting for appropriate white lines), Backwoods Station now has a curvy extension on the end (still needs covering), I've created a custom backscene, I've used matches to … Continue reading More scenery

LocoSound – sound effects for DC model railways

LocoSound is now available for mobile devices (no installation required) to provide sound effects for DC model railways. We all know there are plenty of options for adding realistic sound to a DCC layout, but for those of us using traditional analogue DC technology our options have typically been slim to nonexistent. That's where LocoSound … Continue reading LocoSound – sound effects for DC model railways

Logging with Laravel 5.6 and Loggly

When creating a website, it's important to know what's working and (even more importantly) what isn't. That's where logging comes in. Yes, logging, that oft-forgotten art. But, as Guillaume at Logmatic quite rightly points out, "PHP logs in particular are NOT JUST ABOUT ERRORS". That's his capitalisation there. He's stressing the point, and for good reason. … Continue reading Logging with Laravel 5.6 and Loggly