Include the Core Problem Domain "Data" in Variable Names [VP2]

Include the Core Problem Domain "Data" in Variable Names [VP2]

Tip VP2

When naming variables, focus on the core “what” of the problem domain data that is being passed around, rather than on “how” a solution is implemented.

It’s common for data in a computer program to be transformed and processed in multiple ways. Some of those distinctions might be important, that shouldn’t be the focus of your variable names - the core problem domain data should be the first consideration.

Consider the following example for processing some data in batches:

Find the experts Ad.png