7 Misconceptions: Bugs in thinking

This chapter covers

  • How knowing one programming language can help you learn a new one
  • Avoiding problems when learning a second programming language
  • Understanding how the brain can hold misconceptions and how misconceptions lead to bugs
  • How to avoid misconceptions in thinking and prevent bugs

In the last few chapters, we covered techniques for thinking about code, such as creating visualizations, using frameworks to support the working memory, and using mental models to help solve code problems. No matter how helpful the techniques are that we use to support our brains, we will sometimes make mistakes in thinking about code.

The focus of this chapter is bugs. Sometimes bugs are the result of sloppiness, for ...

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.