Sleep with Context

Go's standard library includes a useful function, time.Sleep, which pauses the current goroutine for at least the specified duration. This is all well and good, and commonly found in the standard libraries of many languages, but unfortunately the function is less useful in a post-context world.

Read More »

Idiomatic panics in Go

Unpopular opinion: Idiomatic Go panics. Not instead of proper error handling, but there remain times when panicking is the best option for correct code. Unfortunately, the use of panic is frowned upon so strongly that even correct uses are likely to get criticized in review. This post hopefully explains when panics are acceptable and idiomatic in Go.

Read More »

Free Speech and Twitter

Recent events have prompted several social media companies to suspend quite a few accounts. This has reinvigorated discussions around the role these platforms play and their relationship to free speech. This topic is certainly important, but also subject to several common errors. Although the best policy is unclear, one hopes to at least whittle away some errors. So, in the spirit of falsification, here are some common misconceptions.

Read More »