Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Please do not attempt to simplify this code.
The only unusual things I see are a) 8-space indentation, b) lots of “if err { return nil }”, and c) lots of comments.
Aren’t a) and b) standard for Go? How else is it possible to write Go code?
With less verbose error handling and 2- or 4- space indentation it wouldn’t look especially “branchy”.
The only unusual things I see are a) 8-space indentation, b) lots of “if err { return nil }”, and c) lots of comments.
Aren’t a) and b) standard for Go? How else is it possible to write Go code?
With less verbose error handling and 2- or 4- space indentation it wouldn’t look especially “branchy”.