Re:Applying the Linus Torvalds “Good Taste” Coding Requirement
by legulere on Wednesday October 26, 2016 @05:48AM
(#12795146)
That is more imperative programming (your first example) vs. functional programming (your second example). The problem with functional programming is that you need to know how the functions are implemented to be able to estimate performance.
[ Parent
| on HN ]
Re:Applying the Linus Torvalds “Good Taste” Coding Requirement
by AnimalMuppet on Wednesday October 26, 2016 @11:59AM
(#12797542)
Especially for something like kernel code, which was the original example. "Obvious cost" matters at least as much as "obvious code" in that world.