6 ms·
I once inherited a codebase that did this, and it was a nightmare to learn. All the classes were named after types of alcohol for some reason. Naming things cle
by robbles 3y ago
I once inherited a codebase that did this, and it was a nightmare to learn. All the classes were named after types of alcohol for some reason.
Naming things clearly is really hard, but this approach is just giving up completely.
- hengheng 3y agoI wouldn't want that for my math scripts, either.
- Asraelite 3y agoIt needs the right balance. 95%+ of classes absolutely should not do this, but it's great for the handful of times when a class is complex, nuanced, and used prolifically. Assuming good documentation, it just means a few extra minutes learning what some terms mean, and that's worth it in the long run in my experience.
- ted_bunny 3y ago> the handful of times when a class is complex, nuanced, and used prolifically Is there a way to describe an example of such a class? That sounds like it could have a proper descriptive name, it'd just be a bit harder to come up with.