r/ADHD_Programmers • • 2d ago

Distraction Is the Enemy of Learning Python

One of the biggest obstacles to learning programming is distraction.
You start learning Python, then jump to Django, AI, cybersecurity, or another programming language. You keep searching for better tutorials and new resources instead of focusing on what you are already learning.
The result? You consume a lot of information but make very little practical progress.
How to avoid this:

  • Stick to one learning path.
  • Focus on understanding the fundamentals.
  • Spend more time writing code than watching tutorials.
  • Avoid switching between resources unnecessarily.
  • Practice consistently, even if progress feels slow.

Remember: You don’t need to know everything. You need to focus long enough to learn something properly.
Consistency beats constant switching.
Have you experienced this problem while learning programming? How do you deal with distraction and avoid constantly switching between topics and resources?

5 Upvotes

10 comments sorted by

1

u/No_Lawyer1947 1d ago

I think the distraction is learning any language very deeply instead of focusing on building different projects you’re interested in. I think the true skill here is breaking problems into manageable puzzles to solve, that’s programming not just the syntax

1

u/PyUnderConstruction 1d ago

I partly disagree. Building projects is important, but without a solid understanding of the fundamentals, you can end up copying solutions without really understanding them. I think there’s a balance between learning the language and applying it to real problems.

2

u/rump_truck 2d ago

Personally, I found that the best approach for me was to hit the pain points and feel the pain for myself, so that I truly understand why and how the tool solves the problem.

Database migrations were the first time I really saw the value of that approach. Everyone else was like "I already know how to add columns in SQL, why am I doing it in app code instead?" I had already dealt with maintaining separate databases for local dev, staging, and production, and I had felt the pain of forgetting to manually run a query in one of them and a new feature breaks because a column it expects is missing. I knew exactly why shipping database changes alongside app code was so valuable.

When you apply design patterns simply because they are design patterns, it's hard to internalize why they are helpful. If you've built something the intuitive but wrong way before, then refactored it to use the right design pattern, you deeply understand why that design pattern is right and will never make that mistake again. I've found it very effective to follow the path of least resistance, make the inevitable mistakes, then lean into the pain points to learn from my mistakes.

1

u/et_theextratestic1e 22h ago

Absolutely.

I made the mistake of learning Django and Python simultaneously. I got through it, but I could have chosen an easier path since both were new to me.

1

u/Dapper-Hedgehog7048 2d ago

OMG 😭 What is this...never expressed it better in words I haven't even read the whole post but I CAN LITERALLY UNDERSTAND YOU. YOU END UP LEARNING A LOT OF STUFF AND GET SIDETRACKED. (Ok now I have read it fully, you are asking how do avoid distractions). This is the reason it took me a long time to learn how to program even though I started way early in school. An average person interested in programming would have learnt it. But me? I will end up searching ages for books, read one book half-way, maybe abandon it, search up new tutorials to follow, make a new project, abandon it half-way, start learning git or vim, switch interests mid-way (starting with iOS/Android development), or maybe web development or no..wait...I wanna learn how to contribute to the Linux kernel! I wanna learn low level C! I read through the legendary C book, Kernighan, was it? And then get sidetracked by a another C book. I was actually speed-running w3school's tutorial but then realised it was more of reference site, not much suited to learning, just for refreshing. Then attempt again after a few months with O'Reily's Head First C but then get distracted by something else entirely...maybe Qt! I like KDE. Know some basics in PyQt6/PySide6. No! I wanna learn Gtk. Forget Gtk, we are going to learn game development. Spent four days getting familiar with Godot. Abandoned it last summer, picked it up again this summer, abandoned it again, recently (thankfully) built a small project. God. The never-ending cycle. Will I ever stay consistent in anything? It was just up till now did I managed to touch OOP. I am glad I did because A Level CS would have been undoable without me touching it by myself. PS: Though I didn't answered the actual question, your advice on "spend more time writing code than hunting resources" is actually good. I am actually glad I am not the only one here to feel like this. I have switched in between a lot of programming languages in the past and it took me longer time to learn programming than it should have. But switching in between, hunting for resources, the "excitement" of learning a new language's feature, kind of entailed a better understanding of programming fundementals? I guess it's a bad idea to learn this way since it takes too long and is unpredictable...but you have a point there to avoid switching between resources unnecessarily. I would say maybe do let your curiosity wander, but maybe in limits. Like make a strict limit of 2-3 resources you can only consult on. (I know I am probably not the best person to provide advice here, but it would help me strictly hold focus and is less distracting if you only have 2-3 resources accountable). Plus, there's the problem of out of sight = out of mind. If you decide to do something recently or start something new, and then get distracted my another-something-new, you forget the previous one. How do you deal with that?

3

u/SortzaInTheForest 2d ago

Be aware that the OP is probably a ai bot, but sometimes these ai bots post interesting food for thoughts.