Hey!

Welcome to my blog, where I discuss the things I'm passionate about such as mathematics, physics, philosophy, and programming.

Latest Posts

Snippet: odd Web Worker bug
25/October/2024
Snippet about an odd Vite bug ("The server responded with a non-JavaScript MIME type of "video/mp2t") I ran into while bundling a Web Worker.
  • snippet
  • frontend
  • vite
  • vue
  • web workers
Why you (almost) never want to call os.Exit or log.Fatalln
17/October/2024
This post explains why Go developers should avoid using os.Exit or log.Fatalln, as they bypass deferred functions, potentially leaving critical cleanup tasks undone. Instead, handle errors gracefully and let deferred functions run before exiting your program.
  • go
  • programming
  • technical
  • best practices
Some lessons I've learned over the years
17/October/2024
In this post, I share key programming lessons I've learned over the years, some of them specific to Go. The points discussed cover a wide range, but the focus is always on writing cleaner, more maintainable code.
  • go
  • programming
  • technical
  • best practices
Thoughts on Nix
15/October/2024
In this post I discuss how I went about figuring out a solution for declarative package management across Linux and Mac, what options I looked at, what I settled on and why.
  • nix
  • sysadmin
  • linux
  • osx
  • technical
Pure CSS toggles (or how to make mobile menus without JavaScript)
13/October/2024
In this post we'll cover how to implement toggling of state using pure CSS solutions instead of needing to reach for JavaScript. One example of where this might be applicable is in the toggling of mobile menus (navigation drawer).