An Interesting Coding Problem

A colleague referred me to an interesting coding brainteaser. The problem statement was (paraphrased) roughly as follows:

Given a list of integers, produce an output list which consists of the product of every integer in the input list except the one at the corresponding index.

For example, given the list …

More…

Pelican

I spent the day porting my blog from a hacked-together homegrown static generator using Python and Jinja to Pelican, a free software static generator using Python and Jinja. The result should be at least 90% invisible, which is partially a result of the shared foundations, and partially a testament to …

More…

Compile-time Typechecked Sum Types in Java

Java has compile-time typechecked sum types with exhaustive matching built into the base language.

“Of course it doesn't” you say? “Their absence is one of Java's most glaring deficiencies”? Well, kind of. Read on to see what I mean.

I'll spoil the trick right upfront: the return value of functions …

More…

A Backwards Git Tutorial, Part 1

Most git tutorials start with teaching you a series of commands to manipulate a repository and only follow up later, if at all, with the effects those commands have on the underlying data. This is great for getting started quickly, but I think it underprepares users for more advanced usage …

More…

Error Pages

I added some custom error pages. You can check them out if you want for some reason. This change should have minimal impact on anybody.

If you fiddle hard enough, you'll note there's only pages for specific error codes. It would be nice to be able to redirect every error …

More…