The Pragmatic Programmer

I'm excited to see an update to The Pragmatic Programmer has been released for its 20th anniversary. This book has had a big impact on my thought processes throughout my career. The principals I learned from it, such as DRY, abstraction, reuse, and organization, are still ingrained in the methods I use to design Minted's component library.

May 9, 2019 @ 2:45pm

If you're just learning Hugo like me, you may want to start with Go's template documentation. The conditional sytax tripped me up for a minute. If you're accustomed to writing conditionals like this:

if ($x == $y)
if ($x && $y)
if ($x == $y || $x == $z)

This is how it would look in a Go template:

{{ if eq $x $y }}
{{ if and $x $y }}
{{ if or (eq $x $y) (eq $x $z) }}

In a Go template, eq is a function that you pass arguments to, not a comparison operator like you would use in JavaScript.

Aug 30, 2017 @ 12:30pm

Welp, this site has just been switched over to Hugo! There's still some template cleanup I want to do, but overall it was fairly simple to migrate from Jekyll.

Aug 28, 2017 @ 10:00pm

I gave Hugo a test run today, and I'm loving it so far. It seems very powerful, and so easy to setup. I may be switching from Jekyll soon.

Aug 24, 2017 @ 7:20pm