by ttiurani · 5y ago · 0 comments
I've seen way too many times how much confusion is created and time wasted when a developer not too familiar with the project comes up with a brand new verb for a common action, and couples it with a new synonym for an existing business domain entity – or worse still, uses the same name previously meant for a completely different domain entity.
The unfortunate burden with this is that a new developer might be right that their name is better for their use case, which then leads to laboursome debates about which is more important: consistency or slightly crisper name for the one use case.
It is not beneath you to hit thesaurus.com while picking a name.
I remember the era when sys admins would name machines or environments after nerdy shit like Tatooine, Dagobah. And you had to memorise which was the test environment and which was the mail server.
Thankfully I have never seen that in code.
It's one way to achieve job security for life though: https://github.com/Droogans/unmaintainable-code
Hey, think yourself lucky. It's only a pretty recent occurrence that my team has more than just the two "Prod" and "Non-Prod" environments...
That's why good API design is so hard. Every name you assign to something becomes a convention by default.