Naming Concepts with Functions
Let’s learn the importance of naming our variables and functions appropriately.
We'll cover the following
Naming matters
Sometimes, when we have a concept in our code that needs a description, it’s tempting to reach for a comment. Instead, think about whether there’s a way to name the concept with code. A new variable or a function with a descriptive name is better than a comment, because those concepts get checked by the compiler, and comments don’t.
For example, in the first version of this code, we combined the concepts of compiling a macro and evaluating it in a single function that looked like this:
Get hands-on with 1200+ tech skills courses.