You’re right. It’s generally a programming mistake.
Finding and fixing these is a skill that you develop over time when you work as a software developer. Some of this is intuition. Based on what’s broken, I know that the issue is probably in this chunk of code so I’ll look there. Other times, you’ll need some way to narrow it down. Like, I know that these three sections of code work together to make this happen, so I’ll see which specific one is behaving incorrectly and that will narrow my search. Developers also have tools that can help them do that. These debugging tools can do things like pause the program when it hits a certain line and lets you look at what specifically a piece of code is doing in that situation.
Latest Answers