▲ | pansa2 8 days ago | |
> Readability counts Almost all Python programmers should be familiar with list comprehensions - this should be easy to understand:
Instead the example uses an explicit loop, coupled with the quirks of the `match` statement. This is much less readable IMO:
> [Ruby] is awful to readI think for someone with a basic knowledge of Ruby, it's more understandable than the Python. It's a combination of basic Ruby features, nothing advanced. I don't particularly love Ruby's syntax either, though - I think the ideal implementation would be something like:
| ||
▲ | slightwinder 7 days ago | parent [-] | |
> Almost all Python programmers should be familiar with list comprehensions Being familiar doesn't mean it's readable. They can be useful, but readability is usually not on that list. > I think for someone with a basic knowledge of Ruby, it's more understandable than the Python. I know both, and still consider it awful. Readability is not about making it short or being able to decipher it. |