Blog

The Joy of Refactoring

October 4, 2019

I spent a good part of last month refactoring a decent portion of the codebase of our Shopify data exporter app, EZ Exporter.

There are 3 main motivations I decided to invest this much time in refactoring:

  • Optimization.
  • Preparing the codebase for new features.
  • Reduce maintenance cost/complexity/technical debt.

Refactoring is the process of improving the code's structure and design, which I actually quite enjoy. I'm a bit of a minimalist and I find cutting ...

How to connect an Xbox One S controller via Bluetooth in Pop!_OS 18.04 (Ubuntu 18.04)

September 22, 2019

In Pop!_OS 18.04 (which is based on Ubuntu), connecting an Xbox One S controller via USB works out of the box and detected by Steam automatically. No additional steps necessary. I've been gaming mostly on my laptop so I've just being using a USB cable so I won't have to think about batteries.

However, I've recently moved to a new AirBnB with a nice big screen TV so I wanted to try it out and ...

Easily convert XML data to a Python dict with xmltodict

September 1, 2019

I hate working with XML mainly because I find it difficult to read.

There's a popular Python package for parsing XML called lxml which is very flexible, but I found xmltodict much better suited and easier to use for what I needed to do.

We have a inventory management app for Shopify, EZ Inventory, and one of the features we've added recently is XML support. We have a few customers whose suppliers can only ...

Gaming on Linux

July 28, 2019

I just finished playing Final Fantasy XII: The Zodiac Age on Linux. In the 70 hours of playtime, the game ran flawlessly. I couldn't recall a single crash or slowdown.

And guess what? There is no native Linux port of this game! I played the Windows version on Linux thanks to Proton and Steam Play. No special tweaking required, just click "Install" and "Play." My Xbox One S controller was detected automatically, it feels ...

Charlie Munger and Warren Buffett Quotes

July 14, 2019

Warren Buffett and Charlie Munger get quoted a lot, and for good reasons. They're very successful investors and businessmen and they've been around for a very long time (Munger is 95 years old and Buffett is 88). There's a lot of wisdom there so it's worth paying attention to what they say.

I've been noticing lately that many of the books I've been reading contain at least one quote from one of them. So I ...

Older