What is Cognitive Load and How Does it Relate to Code Smells

Cognitive Load is the amount of mental effort required to complete a task or process. In software development, cognitive load can be influenced by code smells, which are indicators of potential issues in code such as duplication, overly complex logic, and poor naming conventions. Code smells can increase cognitive load by making it more difficult for developers to understand and maintain the code. Reducing code smells can help lower cognitive load and improve the efficiency and effectiveness of software development. Check out Felienne Hermans’ book 📖 The Programmer’s Brain | 📖 To save 40% off this book ⭐ DISCOUNT CODE: watchhermans40 ⭐ In this video, Felienne demonstrates how knowledge of cognitive science can help deepen our understanding of code smells, make reading code easier, and help write better code. This video is an excerpt from a live coding session by Felienne Hermans, the author of The Programmer’s Brain. To watch the entire video go to 📚📚📚 The Programmer’s Brain | To save 40% off this book use discount code: watchhermans40 📚📚📚 “The Programmer’s Brain: What every programmer needs to know about cognition“ explores the way your brain works when it’s thinking about code. In it, you’ll master practical ways to apply these cognitive principles to your daily programming life. You’ll improve your code comprehension by turning confusion into a learning tool, and pick up awesome techniques for reading code and quickly memorizing syntax. This practical guide includes tips for creating your own flashcards and study resources that can be applied to any new language you want to master. By the time you’re done, you’ll not only be better at teaching yourself—you’ll be an expert at bringing new colleagues and junior programmers up to speed.
Back to Top