|
|
|
|
|
by tikhonj
3064 days ago
|
|
Haha, great example—that's exactly what I want from my bash scripts too :). Just a simple list of commands. Salman Rushdie style is reserved for libraries that make a massive impact. Learning abstractions like that is like learning a new part of the language so it has to really pay off. Rare but not impossible. The Haskell lens[1] library is a great example. It's almost too clever for its own good and learning it is like learning a new programming language, but it is such an improvement for the entire codebase it's worth it. I use it widely at work and it pays for its own difficulty almost immediately. (It's also important that it can't achieve some of its core functionality without the "clever" things it does.) The documentation could use a bit of work though :/. [1]: https://hackage.haskell.org/package/lens |
|
I'm not sure if it is really appropriate for any code to be more than Robert Frost clever, sometimes think that should be clever enough for anyone. But this is only a periodic opinion.
on edit: I guess that means I'm saying no language needs to be more clever than Python.