Aaron O. Ellis

  • GitHub
  • Twitter

Subclassing datetime.date in Python 3

Sunday, September 23, 2018

I’ve been building an application that uses Python’s datetime.date class to represent financial quarters. The system hardcodes the month and day of each quarter, so the first quarter, for example, is equal to March 31st, and does not vary year to year. Read more...

Preventing Max Connection Errors in Go

Saturday, April 23, 2016

Earlier this week, I had to debug a production Go system that was crashing with the friendly PostGres error pq: sorry, too many clients already. The culprit was a function that left database transactions open under certain conditions. Although the solution was easy (close your transactions!), the problem was damaging enough that I wanted to find an automated way to guarantee every transaction was being closed throughout the application. Read more...

URL Parsing

Sunday, May 17, 2015

I have a URL parsing problem.

How do we get a computer to recognize a URL in a block of text? Having a method to do this allows links such as google.com to be made clickable: google.com.

This automatic link generation has become such a feature of mainstream social media sites that its absence is notably jarring to the user. But despite this being a critical UX component, it often goes wrong. For instance, on my Android text messenger: Read more...

More articles...