I love using Go's interface feature to declaratively define my public API structure. Consider this example: package main import ( "fmt" ) // Declare the interface. type Geometry interface { area() float64 perim() float64 } // Struct that represents a rect... (more…)
Read more »
As a software developer
who cares about making robust, debuggable systems,
I’ve been interested for a while now
in ideas like Functional Reactive Programming,
or the Elm Architecture.
Sadly,
regular employement does not include a lot of opportunities
to p... (more…)
Read more »
The challenge Given the triangle of consecutive odd numbers: Calculate the row sums of this triangle from the row index (starting at index 1) e.g.: Test cases The solution in code While there are many ways to achieve this, the absolute most simple is to r... (more…)
Read more »
Open-source programming languages, incredibly valuable, are not well accounted for in economic statistics. (more…)
Read more »
Today I’m happy (and a little trepidatious) to announce the next
version of PEP 622, Pattern Matching. As authors we welcome Daniel F
Moisset in our midst. Daniel wrote a lot of the new text in this
version, which introduces the subject matter much more g... (more…)
Read more »