The FUNDAMENTAL way to debug your code

No one can write perfect code. There are always bugs! Especially as systems become more and more complex, the likelihood of bugs increases. There are also bugs and coding mistakes as we develop new features and functionality for our programs. This is all part of the process.

When we can’t figure out why our code isn’t working, what do experienced programmers do? There are many ways of answering this, but it all boils down to this: we need to get useful feedback from our program. For developers, this often takes the form of logs or print statements. We need to see what exactly our program is doing before it messes up. Or maybe we don’t even know where it messes up. This is where print statements come in.

This video explains why getting feedback from our code is essential for debugging and development. I also give examples of logs and print statements we encounter in everyday life. Towards the end of the video, I have a debugging example to show you what I mean. Let’s get into it!

In this video, you’ll learn:
-How important program feedback is
-The power of logs and print statements
-How I might go about debugging a program

Hope this helps!
-Henrik