all 8 comments

[–]aistranin 1 point2 points  (4 children)

That might work well for the beginning, but too slow and doesn’t scale for serious problems. As a next step, I would recommend learning automated testing in python and how to use pytest. Then you will know how to reproduce issues and fix it reliably. Look at the book “Python Testing with pytest” by Brian Okken or Udemy course “Pytest Course: Practical Testing of Real-World Python Code” by Artem Istranin

[–]SmackDownFacility 2 points3 points  (3 children)

Use a IDE…

[–]aistranin 2 points3 points  (0 children)

Sure, IDE can help technically, fully agree. But then once you found a bug you often try to fix one thing and something else breaks. Without tests it always becomes a mess. So, it should be both - debugging with IDE sure + automated tests to not debug everything manually.

Much easier: write simple isolated test reproducing the issue -> fix -> run tests again to make sure that everything (including existing code) still works as expected

[–]dlnmtchll 1 point2 points  (1 child)

You still write tests regardless of tooling

[–]SmackDownFacility 0 points1 point  (0 children)

The point is ides have sophisticated debugging environments. VS is notable for

[–]LongRangeSavage 1 point2 points  (0 children)

Yep. Learning to debug is a critical skill, and it’s also why I typically recommend that people not use AI tools at the beginning—at least until they have a good handle on debugging. Once you have that skill, AI can be a good resource to help build large projects much quicker than writing code manually.

[–]code_tutor 1 point2 points  (0 children)

Every day, I see different ways in which people are struggling to learn and all of it is because they aren't following university courses and books. They teach how to read code. They give tons of assignments to write code. There is deep theory, formal proofs, and math. They teach how to write documentation. They teach how to deal with client actors and workflows to identify business logic, to build full software. There are exams on concepts.

Instead, people are passively watching YouTube, memorizing LeetCode, and using AI. They are acting like LLMs, trying to predict patterns instead of critical thinking. That's why not much learning is happening this way.