4 ms·
On the flipside, the usual argument around "simplicity" and "readability" is just code for "familiarity". A Haskeller used to composing a bunch of folds has no
by smasher164 5y ago
On the flipside, the usual argument around "simplicity" and "readability" is just code for "familiarity". A Haskeller used to composing a bunch of folds has no obligation to transform their program into something readable by Python programmer, unless of course, they were the only Haskeller.
But I agree, there's a difference between code that veers towards obfuscation and code that employs techniques someone just hasn't learned yet.
- bydlocoder 5y agoHaskell is much more than folds, maps and monads.
- smasher164 5y agoI agree. I'm just presenting an example where patterns that one camp deems as "too clever" are normal to another.
- sangnoir 5y ago> On the flipside, the usual argument around "simplicity" and "readability" is just code for "familiarity" I found this resonating with my own thoughts towards LeetCode questions, which are at odds with most on HN. Unfamiliarity makes people dismiss them as requiring rote memorization, where's most of them are a matter of figuring out the nature of the problem space, and choosing the right data structure and algorithms