Mood Lighting
The lighting in my bedroom uses Philips Hue bulbs — specifically, the coloured ones. Last night, I decided it would be nice to set the three lights in my bedroom to cycle slowly through a set of warm colours using…
The lighting in my bedroom uses Philips Hue bulbs — specifically, the coloured ones. Last night, I decided it would be nice to set the three lights in my bedroom to cycle slowly through a set of warm colours using…
For letting me know my test coverage has increased by 0.00006%. (Seriously it’s a pretty cool service though.)…
I don’t usually take part in the Perl Weekly Challenge but one of this week’s challenges caught my eye. I thought it could be a fun thing to attempt and decided to use Zydeco to help solve it. The problem…
In algebra, there’s this pretty funky concept: And I was thinking if $f and $g were coderefs, what could $f + $g be?…
Today I released Zydeco::Lite, a re-implementation of Zydeco but just using standard Perl syntax. So for example, class { … } becomes class(sub { …});. This has the advantage of much faster compile time, similar run time speed, fewer dependencies,…
So I like to keep local copies of my blogs.perl.org blog posts as Atom entries, but noticed yesterday that I had a few gaps in my collection. The Atom feeds offered by blogs.perl.org only have the most recent articles though,…
Prompted by a recent question on PerlMonks, I’ve been thinking a bit recently on marshalling and unmarshalling Perl objects. If you’re happy using Data::Dumper’s format, then it’s trivial, but today we’re looking at JSON. If you just want to encode…
Mom is a shortcut for creating Moo classes (and roles). It allows you to define a Moo class with the brevity of Class::Tiny. (In fact, Mom is even briefer.) A simple example:…
Overall, I think the Perl 7 announcement is great news. I only have one small objection:…
I was recently shown this puzzle: There are some things I found a little unclear about it. For example, should the following two circles count as being connected? There is a line between them, even if it’s interrupted by a circle. And what about these two circles? Are they connected? Again, there’s a diagonal line […]