Aaron O. Ellis

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...

Arrays in Go

Sunday, July 27, 2014

If you’re looking to learn more about arrays in Go, the best place to start is Go Slices: usage and internals on the Go blog. The following merely expands on the article’s points and demonstrates a few gotchas. Read more...

Opinions on Go

Thursday, May 29, 2014

Last week I delivered a talk on teaching Go at the Denver Gophers meetup. The talk included a number of what I called “controversial opinions” on Go and I have foolishly decided to make them a matter of public record. Read more...

More articles...