News for hackers. Stuff that matters.
Re:Please do not attempt to simplify this code by hannofcart on Thursday December 27, 2018 @10:32PM (#18774707)
I see a lot of comments mentioning various versions of the following:

- "It's the "jazz music" of software development."

- "...breaks all the "rules" but does so purposefully..."

- "this is irreducibly complex, and cannot be split into multiple files"

- "that smallness-of-file or smallness-of-function is not a target to shoot for"

I am wondering: can't all the above statements be said in defence of any poorly engineered, gargantuan single page code?

Re:Please do not attempt to simplify this code by fluffycat on Friday December 28, 2018 @04:33AM (#18775783)
But this gargantuan pile of garbage warns that it can not and should not be refactored and it is like the shuttle code (may their souls rest in peace), it is so solid and perfect as is. It is also written in the sacred language of Go. So if these conditions are met, then yes above praises will be and must be sang.
Re:Please do not attempt to simplify this code by EB66 on Thursday December 27, 2018 @10:48PM (#18774769)
The jazz music analogy implies that it breaks the rules, but do so artfully and intelligently -- that wouldn't necessarily be a valid defense for any old block of poorly engineered code.

Also, poorly engineered code is seldom irreducibily complex.

Re:Please do not attempt to simplify this code by dilyevsky on Friday December 28, 2018 @04:14AM (#18775723)
Code that is “write only” (as is proudly proclaimed in this case) is shit no matter how you spin it.
Re:Please do not attempt to simplify this code by pknopf on Thursday December 27, 2018 @10:37PM (#18774731)
Can everyone play jazz?

No.

Re:Please do not attempt to simplify this code by fogetti on Thursday December 27, 2018 @11:57PM (#18774970)
Can everyone claim that their terrible music is jazz music?

Yes.

Re:Please do not attempt to simplify this code by pknopf on Friday December 28, 2018 @12:01AM (#18774980)
Apart from a comedy bit, can everyone easily spot the difference?

Yes.

Re:Please do not attempt to simplify this code by kstenerud on Friday December 28, 2018 @02:11AM (#18775287)
No. Most jazz, including by the jazz greats, just sounds plain terrible. The worst is jam sessions, where everyone steps over each other but it sounds not abysmal at times because they're in the same key.
Re:Please do not attempt to simplify this code by hannofcart on Thursday December 27, 2018 @10:42PM (#18774747)
Only because you asked:

https://youtu.be/cRzDEdY8FL4?t=214

Re:Please do not attempt to simplify this code by andyfleming on Thursday December 27, 2018 @10:44PM (#18774758)
I thought your link was going to be to "H. Jon Benjamin Doesn't Play An Instrument, But Recorded A Jazz Album": https://www.youtube.com/watch?v=ZeMIgcNUpNQ