Hacker News new | ask | show | jobs
by stevedekorte 5932 days ago
The problems I have with "distance [1,2], [5,6]" are:

0. It breaks the fundamental OO convention and doesn't encapsulate logic and data.

1. It's not clear what it means unless you look up the docs.

2. It's implementation is complex, making it more difficult to understand and maintain

3. It fails to separate concerns, making it less extensible/modifiable. e.g. What if you wanted to override the setting behavior? You couldn't do it in one place.