|
|
|
|
|
by jessedhillon
5589 days ago
|
|
I think you've mistaken my argument. I didn't say that the Python version looks good or is the best way to do it. It's not. I was saying that "something that is long and full of moving parts" is easier to read than something that is short and idiomatic. I am not saying either of them represent the ideal way to do it. My definition of readability includes the ability to convey the programmer's intention to the mind of the reader. The reader should be able to work out what is intended by the code with minimal requirements placed on them, and I think I detailed earlier why I think the Python code does a better job than simple surrounding a shell command with backticks. |
|
That's where the argument goes wrong, if the idea of "minimal requirements" means "avoid idioms".