Name Games

How do you name? The naming technique for each of these items will depend on any coding standard you’re working to. However, while a standard might mandate certain naming conventions, it won’t be specific enough to guide the appropriate naming of each and every part of a program.

In order to name well, it’s essential to know exactly what you’re naming before you think up a name for it. If you don’t know what you’re naming, how it will be used, and why it actually exists, how can you give it a meaningful name? Bad names are often a sign of poor understanding.

KEY CONCEPT

The key to good naming is to understand exactly what you’re naming. Only then can you give a meaningful name. If you can’t invent a good name for something, do you really ...

Get Code Craft now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.