Re:Making the move from Scala to Go
by hliyan on Tuesday January 24, 2017 @09:42PM
(#13477989)
As the saying goes: it's easier to write code than understand it. Therefore if you write code as cleverly as you can, then by definition you're not smart enough to understand it...
[ Parent
| on HN ]
For those that like trivia, the original quote I believe is by Kernighan and it's about debugging code rather than writing it, which I feel makes more sense:
"Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it?"
Re:Making the move from Scala to Go
by true_religion on Tuesday January 24, 2017 @11:52PM
(#13478639)
I sometimes optimistically believe that my cleverness will increase over time.
Yes but occasionally there's no other option. I once had to code a parser for a data format with an odd non-BNF grammar with a bunch of special cases. In order to meet the functional requirement for user-friendly error reporting when parsing invalid inputs I was forced to write really clever (in a bad way) code. Fortunately we haven't found any serious defects in it because I don't think I understand it well enough to debug it.