> One thing to not take from Linus’s point: the tone and general rudeness.
Yeah, beat me to it. I've seen him have other outbursts in the past, and frankly it's disappointing. I'm not involved with the Linux project, but if I was, I'd be sure to avoid him because of behavior like this.
> duplication is actually reducing cognitive load, because the “chunk” is self-contained
I've been thinking about that and I'm still not convinced. In my experience most of the time duplicate code increases cognitive load because every time I suspect a block of code is duplicate I have to go back and check if the other duplicate places do exactly the same thing or something slightly different. Just as DRY can be abused, PRY will be as well, and I'm afraid the consequences will be worse than the consequences of DRY abuse.
>"And sending a big pull request the day before the
merge window closes in the hope that I'm too busy to care is not a
winning strategy."
This was the key part here. Linus was absolutely right to tear him a new one.
> One thing to not take from Linus’s point: the tone and general rudeness.
Yeah, beat me to it. I've seen him have other outbursts in the past, and frankly it's disappointing. I'm not involved with the Linux project, but if I was, I'd be sure to avoid him because of behavior like this.
Dude needs to be kind and rewind.
> duplication is actually reducing cognitive load, because the “chunk” is self-contained
I've been thinking about that and I'm still not convinced. In my experience most of the time duplicate code increases cognitive load because every time I suspect a block of code is duplicate I have to go back and check if the other duplicate places do exactly the same thing or something slightly different. Just as DRY can be abused, PRY will be as well, and I'm afraid the consequences will be worse than the consequences of DRY abuse.