News for hackers. Stuff that matters.
Re:Go Proposal: first-class support for sorting slices by shurcooL on Wednesday August 17, 2016 @11:05PM (#12310171)
I used to care about DRY to a _very_ great degree [0], and I still do. But I've come to realize DRY is much better to apply for high level _concepts_, ideas, and architectures, not unexported helper code.

It's unhelpful to try to apply it to little snippets of code and helpers. It's much less expensive to copy a snippet that's needed and duplicate it 1-2 times before starting to worry about factoring it out. By the time it's repeated 3+ times, you'll have a much better idea how to structure it.

[0] https://github.com/shurcooL/Conception#motivation

There are no comments on this comment yet.