News for hackers. Stuff that matters.
Re:Please do not attempt to simplify this code by hueving on Thursday December 27, 2018 @05:35PM (#18773256)
This is what a lot of Go code looks like. This "space shuttle" code honestly isn't much more verbose than most Go code I interact with. The main difference is they have more comments here.
Re:Please do not attempt to simplify this code by bouncycastle on Friday December 28, 2018 @01:09AM (#18775133)
Likewise, I've seen a lot of Go that is far away from the idomatic Go heaven that is the standard library. Although that happens in every language as soon as there's reasonable complexity.

As for the "space shuttle" term, it's more of a euphemism for "do not even attempt to refactor this mess, it's so complex that you'll surely fuck up if you do, and you'll make it harder for the one guy who can actually understand this"

Re:Please do not attempt to simplify this code by thefounder on Thursday December 27, 2018 @06:24PM (#18773567)
"else/else if" is not used very often in Go.
Re:Please do not attempt to simplify this code by efaref on Friday December 28, 2018 @05:30AM (#18776003)
It's not used very often here, either. Despite their claims at the top of the code of every `if` having a corresponding `else`, there are 140 `if`s, but only 20 `else`s and a mere 5 `else if`s.
Re:Please do not attempt to simplify this code by AstralStorm on Friday December 28, 2018 @09:19AM (#18776811)
Most of the ifs are for early termination. Using an else on one of these is wasteful.