Linus' idea of "good taste" code

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Wed Oct 26 06:20:18 PDT 2016


On Wednesday, 26 October 2016 at 09:41:42 UTC, Walter Bright 
wrote:
> 6. Nearly all bugs can be fixed with under 10 lines of code, 
> and quite a few with 1 line. It's always a red flag for me when 
> a fix PR has 200+ lines of code (test case lines of code don't 
> count, neither do comments).

I find the most elegant bug fixes tend to be the ones with an 
overall reduction of code.

Though, sometimes things are rotten to the core and that net 
change of -10 lines comes from a +330, -340 diff....


More information about the Digitalmars-d mailing list