News for hackers. Stuff that matters.
Re:Please do not attempt to simplify this code by iainmerrick on Thursday December 27, 2018 @05:57PM (#18773410)
This looks like pretty normal code. What is all the “space shuttle” stuff about?

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

Re:Please do not attempt to simplify this code by tcheard on Thursday December 27, 2018 @06:12PM (#18773498)
It will actually be tabs, which is standard for Go (as per gofmt), GitHub's default tab width is 8 spaces.
Re:Please do not attempt to simplify this code by sbr464 on Saturday December 29, 2018 @12:11PM (#18784534)
Add ?ts=2 to the url on github, it will lower the tab width.