Re:Applying the Linus Torvalds “Good Taste” Coding Requirement
by falcor84 on Wednesday October 26, 2016 @04:00AM
(#12794718)
I definitely agree with this, but note that the semantics in your code are different from those in Linus's example - your code filters out ALL matches.
[ Parent
| on HN ]
Re:Applying the Linus Torvalds “Good Taste” Coding Requirement
by fdgdasfadsf on Wednesday October 26, 2016 @06:08AM
(#12795233)
This is actually an important point. Quite a few times I've written something that started as a list comprehension, changed it to a lambda later in the sprint and finally to a loop when the requirements became more detailed. - The real world is unfortunately full of business requirements that think that they are special flowers.