2 ms·
> need to split and name things everywhere It can sometimes be annoying yes, but when you come back to the code 6 months later it's mostly a good thing.
by boxed 3y ago
> need to split and name things everywhere
It can sometimes be annoying yes, but when you come back to the code 6 months later it's mostly a good thing.
- matsemann 3y agoBut in other languages it's clear what the code is doing. If you have a chain of map, filters and other operations, they are all named and easy to grok. In a python list comprehension a lot of things will be going on, without named parts. So then you need to name stuff to keep track. So you got foo, then foo_filtered, then foo_sorted, then foo_grouped. And that doesn't really convey anything more than in a language where you would do foo.filter().sort().group().