Re:Applying the Linus Torvalds “Good Taste” Coding Requirement
by smitherfield on Wednesday October 26, 2016 @11:22AM
(#12797169)
If this example is too "clever" for someone, even sight unseen, they aren't (yet?) cut out to be a kernel hacker. I don't disagree with your general principle, but the linked example is idiomatic and understandable C for someone with a decent knowledge of the language, which is (I'd imagine/hope) the standard expected of contributors to Linux.
[ Parent
| on HN ]
Re:Applying the Linus Torvalds “Good Taste” Coding Requirement
by phee on Wednesday October 26, 2016 @12:13PM
(#12797690)
Actually I believe this particular example is basic and pretty understandable C.
I was talking about the more broad idea of knowingly writing clever code to raise the entry barrier for new devs. Or just writing clever code for whatever the reason. It's almost guaranteed to backfire, to new devs who will have to maintain it or to yourself, when you will have to read it in a less smart moment.
Re:Applying the Linus Torvalds “Good Taste” Coding Requirement
by smitherfield on Wednesday October 26, 2016 @01:02PM
(#12798230)
Entirely agreed.