DEV Community

How do I keep track of the vocabulary of my code?

Tamás Szelei on April 15, 2019

I often find code I've written that uses different vocabulary for the same things. For example, we have a term variant (referring to a variant of o...
Collapse
 
ben profile image
Ben Halpern

I'd bet that establishing good documentation habits could go a long way here. Just writing down some project guidelines/constraints. Loose rules for the type of ways you name things? If you have a theme of how things are generally named than the right consistency might come to you.

One more thing: Good tests and regular refactoring. If you do happen to get in a situation where you'd like to make areas of the code more consistent, being confident that you can make sweeping changes without breaking things is a good place to be.

Collapse
 
tamas profile image
Tamás Szelei

Great advice. I especially like the suggestion for creating rules for naming things. Thanks!

Collapse
 
brandonskerritt profile image
Autumn

I put them into the readme on GitHub personally.