8 How to get better at naming things
This chapter covers
- Comparing different perspectives on good naming practices
- Understanding the relationship between names and cognitive processes
- Exploring the effect of different naming styles
- Investigating the effect of bad names on bugs and errors
- Learning how to structure a variable name to maximize understanding
Part 1 covered the different cognitive processes involved in reading code, including storing information in the LTM and retrieving it when needed, storing information in the STM, and processing code in the working memory. In part 2, we looked at how we think about code, what mental models are formed about code, and how we talk about code. In Part 3, we will zoom into the process of writing ...
Get The Programmer's Brain 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.