logo Contact

Thoughts

Sharing my journey, insights, and experiences in tech and life.

When Logic Fails: How We Settled the Monty Hall Problem with Go

When our team couldn’t agree on the Monty Hall problem, we turned to Go programming to settle the debate. This article shows how we built a simulation to prove that switching doors really does double your chances of winning.

On Jul 19, 2025 go golang probability simulation monty-hall mathematics tutorial

Page layouts in Go

This post explains how to use Go’s template block and define expressions for creating reusable page layouts. It demonstrates avoiding repetition in HTML templates for a blog application. Learn to separate layout from content for better maintainability.

On Mar 12, 2022 software-development go html templates golang

Go embed for better SQL query management

This post explores using Go’s embed package for improved SQL query management in applications. It compares embedding SQL in strings versus using separate SQL files with go:embed. Learn how this enhances editor support and maintains single-binary deployment.

On Jan 16, 2022 go golang embed stdlib

Timezone Data in Go 1.15+

On a previous post I wrote about Go’s time locations and how to put those in an alpine Docker container. This was achieved by copying the timezone data zip file from the docker builder image into the distributable image. Then using an environment variable to point Go to the location of that file.

On Dec 10, 2021 go golang timezone stdlib