Code Roast 2

December 17, 2021

A couple of weeks ago I published a video “roasting” some code. When I asked a few months ago for code samples to roast, I had two submissions, so now I’ve roasted the second submission as well.

This one has an interesting twist, in that it’s a Go port of a JavaScript library, which makes for some especially non-idiomatic Go.


Related Content

Go Code Roast #2: readability.js port

In this video, I roast a port of a Mozilla Javascript library, [readability.js](https://github.com/mozilla/readability) to Go.

Go Code Roast

In this video, I roast some Go code! That is, I review it as if it were submitted as part of a job application screening. I talk about what I like, what I don't like, and how I would do things differently.

"Readability" is subjective

Ask yourself: Will the least experienced developer likely to read this code be able to understand it?