News for hackers. Stuff that matters.
Re:Applying the Linus Torvalds “Good Taste” Coding Requirement by eps on Wednesday October 26, 2016 @04:22AM (#12794807)
Re: #2 - in Linux case, double-pointer list removal succinctly illustrates the minimum C proficiency needed for tinkering with kernel code.

That is, not every project has "shortening ramp-up time" as a priority. In quite a few cases non-trivial code doubles as filter for less skilled devs.

Re:Applying the Linus Torvalds “Good Taste” Coding Requirement by krylon on Wednesday October 26, 2016 @05:38AM (#12795100)
I still think one should not make code more complicated than it has to be just to weed out the newbies.

An OS kernel is going to be a very complex piece of code (ignoring microkernels) because what it does is complex. But that is all the more reason to keep the code as straightforward as possible. (There are still going to be times where code is not straightforward due to inherent complexity of the problem, or performance considerations, or portability, ...)

Re:Applying the Linus Torvalds “Good Taste” Coding Requirement by phee on Wednesday October 26, 2016 @08:19AM (#12795827)
>In quite a few cases non-trivial code doubles as filter for less skilled devs

Right, until the less skilled dev it's you, months later after you moved on to other stuff, and have to get back and fix some clever shit you wrote but don't understand anymore.

Unless you're doing numeric or performance critical work, code should be optimized for readability and maintainability.

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.
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.
Re:Applying the Linus Torvalds “Good Taste” Coding Requirement by sverrirs on Wednesday October 26, 2016 @04:49AM (#12794916)
Projects should be accessible to new developers regardless of their complexity level. Even operating systems. Otherwise they will simply stagnate and die.

Also, "less skilled devs" are just people that are still learning. We've all been there.

Re:Applying the Linus Torvalds “Good Taste” Coding Requirement by huhtenberg on Wednesday October 26, 2016 @05:18AM (#12795015)
This makes no sense.

Projects should be accessible to new developers with appropriate skill set, which is inherently defined by the projects' complexity.