r/learnpython • • May 06 '21

What are some programming tools that every beginner programmer should know about?

Example, today I learned about Git and GitHub and it felt incredible.

480 Upvotes

190 comments sorted by

View all comments

Show parent comments

4

u/Poddster May 06 '21

Knowing what makes the program crashes instead of just messing around with what you think crashes it is really helpful.

It sounds like your missing a crucial step. It's an important step you need to use even when using a debugger: Thinking.

You shouldn't be messing around with random stuff. You should think:

  1. What did the program actually do?

  2. What did I intend for it to do?

  3. Where's the gap there?

1

u/TaranisPT May 06 '21

Yes I understand that, and it's mostly how I use the debugger. Maybe I expressed myself incorrectly here, but what I meant is that before I learned how to use it, I would go over the section of code that seemed to misbehave basically by trying what I thought was wrong without actually knowing if it was the problematic thing. Keep in mind that at that time I was even more beginner than I am now and had a very vague idea of what I was doing. Now I understand the logic behind the code much better and have a better idea what I should look at when a crash/bug arises. Just resorting tonthe debugger if you have no clue what's going on is not going to help you much, I completely agree on that.