3 ms·
Your first example has nice trickery in it but I prefer the original version. I think it is important to keep it simple. Compressed code is often not the best
by fubari13 14y ago
Your first example has nice trickery in it but I prefer the original version. I think it is important to keep it simple.
Compressed code is often not the best way to do it; adding a few lines of verbosity can reduce the time it takes to understand the code to a fraction while sacrificing very little in terms of performance.
- devgutt 14y agoI disagree about the first one. I think that is easier to understand, easier to add more options and less prone to errors.
- d23 14y agoIt's good that this discussion can actually be had on here civilly. Too often I see vitriol and pedantic disagreement on HN for no reason other than the swinging of the e-peen.