4 ms·
If you really do want your code to be searchable, here’s a couple of practices I’ve adopted: 1) Eliminate spelling mistakes. Eliminate alternative spellings. U
by moomin 2y ago
If you really do want your code to be searchable, here’s a couple of practices I’ve adopted:
1) Eliminate spelling mistakes. Eliminate alternative spellings. UK vs US English? Pick a side and stick to it.
2) Eliminate contractions. Or keep a very short list of allowable ones (We permit “info” for instance.)
The point of this is to increase the predictability of the names you use. If you’ve got “tradeable” and “tradable” in your code base, search for it is going to be a pain. You can supplement these rules with common coding standards like “We call these things providers.” but just getting the spelling consistent is huge.