Day 17 – An issue with evaluation

Lizzybel was walking the corridors of North Pole Central when Steve, the Physics Elf, came up to her. “Have you seen my issue on this very nice module of yours?”, he asked. “Oof, I guess I must have missed that, sorry!”, said Lizzybel, while thinking to herself “I really should look more at my modulesContinue reading “Day 17 – An issue with evaluation”

Day 7 – Conditionally Writeable Attributes

by landyacht While designing an event system for a personal project, I ran across a requirement which I knew could be implemented elegantly with Raku’s metaprogramming capabilities. Specifically, I wanted both sync and async events, with the sync events allowing mutation of fields (e.g. for cancellation), and the async ones being merely informational and thusContinue reading “Day 7 – Conditionally Writeable Attributes”

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 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:

Day 23: Christmas-oriented design and implementation

Every year by the beginning of the school year, which starts by January 8th in the North Pole, after every version of the Christmas gift-giving spirit has made their rounds, Santa needs to sit down to schedule the classes of the North Pole Community College. These elves need continuous education, and they need to reallyContinue reading “Day 23: Christmas-oriented design and implementation”

Day 11: Santa Claus TWEAKs with a Class

Prologue Santa [1][2] was browsing the eTrade magazines on his iPad one morning and came across an article referenced in the latest O’Reilly Programming Newsletter about how ancient COBOL is the programming language still used for the bulk of the world’s business software. He had been aware of that since his huge operations with millionsContinue reading “Day 11: Santa Claus TWEAKs with a Class”

RFC 265: Interface polymorphism considered lovely

A little preface with an off-topic first. In the process of writing this post I was struck by the worst sysadmin’s nightmare: loss of servers followed by a bad backup. Until the very last moment I have had well-grounded fears of not finishing the post whatsoever. Luckily, I made a truce with life to getContinue reading “RFC 265: Interface polymorphism considered lovely”

RFC 188, by Damian Conway: Objects: Private keys and methods

Break someone’s code today! On September 1st of 2000 Damian Conway sent a proposal №188, promoting the idea of Private Keys and Methods. In those days, Perl’s object-oriented programming relied heavily on hashes. Indeed, a hash can store data values by keys, as well as references to routines, which is how you can describe anContinue reading “RFC 188, by Damian Conway: Objects: Private keys and methods”