Day 11 – Unix philosophy without left-pad, Part 2: Minimizing dependencies with a utilities package

In the previous post, I made a case for why programming languages should have a utility library that provides small-but-commonly-needed functions. Today I’m introducing a Raku package that I hope will fill that gap and discussing how this fits with the Unix philosophy

Day 10 – Java Annotations in Raku or my @annotation is role;

Today, a little about the fact that the new is better absorbed through the already known. It so happened that I write for $dayjob in Java, so I will come from this side. Java 1.5 introduces an interesting syntactic form – annotations. It looks something like this: The example shows an annotation @Deprecated that causesContinue reading “Day 10 – Java Annotations in Raku or my @annotation is role;”

Day 9 – Raku code coverage

Although I love using Raku, the fact that it is still a relatively young language means that there is a fair amount that is lacking when it comes to tooling, etc. Until recently, this included a way to calculate code coverage: how much of the code in a library is exercised (=covered) by that library’sContinue reading “Day 9 – Raku code coverage”

Day 8 – Practice… on Advent of Code

“Hrmpf!” mutter mutter mutter “Bah!” The head elf Fooby Nimblecalmy was trying to to read an interesting article on Ramsey Theory, but was having a hard time because the latest addition in Santa’s IT Operations Buzz Bargoosey was steaming like a kettle. Anyway, Fooby was determined to go through the article, so decided to deliberatelyContinue reading “Day 8 – Practice… on Advent of Code”

Day 7 – Neural Nets in Raku (Part 1)

Thinky the Elf was sitting in his office, it had been a closet but he’d been given it as his office after the great baked beans incident. It wasn’t his fault. He was right that feeding the reindeer beans would give them a jet boost but Santa had not been all that happy about it.Continue reading “Day 7 – Neural Nets in Raku (Part 1)”

Day 6 – Following the Unix philosophy without getting left-pad

The Unix philosophy famously holds that you should write software that “does one thing, and does it well”. But following that advice too literally can lead to the micro-package dystopia that got us left-pad. But there is a way to write libraries that do only one thing without getting left-pad

Day 4 – Santa’s OCD Sorted

Santa has been around for a long time already. Santa remembers the days when bits where set by using a magnetic screwdriver! In those days, you’d made sure that things were orderly set up and sorted for quick access. Santa likes the Raku Programming Language a lot, because it just works like Santa thinks. There’sContinue reading “Day 4 – Santa’s OCD Sorted”

Day 1 – Batteries Included: Generating Thumbnails

It was a cold wintry night in the North Pole and Santa was in a mood. “Naughty. Naughty. Naughty. Ni..aughty” he grumbled, checking his list. Then checking it again. “Everything ok?” chipped cheerful Sparkleface the elf, bouncing into the room. “Isn’t it nice to have some cold weather for a change?” Santa scowled at SparklefaceContinue reading “Day 1 – Batteries Included: Generating Thumbnails”

Day 25: Reminiscence, refinement, revolution

By Jonathan Worthington Raku release reminiscence Christmas day, 2015. I woke up in the south of Ukraine – in the very same apartment where I’d lived for a month back in the spring, hacking on the NFG representation of Unicode. NFG was just one of the missing pieces that had to fall into place duringContinue reading “Day 25: Reminiscence, refinement, revolution”

Day 24: Christmas-oriented programming, part deux

In the previous installment of this series of articles, we started with a straightforward script, and we wanted to arrive to a sound object-oriented design using Raku. Our (re)starting point was this user story: