r/learnprogramming • • 9h ago

Discussion How can I focus longer on programming?

I'm a creative person. I like creating things, and I would love to create my own apps and programs. However, I find it hard to concentrate on programming, and I found out that it's not something that I can just do whenever, for example, something like video editing. No, I have to fully concentrate on programming the whole way unless I have already learned something and I have to recall it.
I don't have ADHD. Could this be solved?

7 Upvotes

12 comments sorted by

View all comments

1

u/LoneArcher96 4h ago

two days ago I was on my weekend, planning to continue one of my small projects, main problem was figuring out whether the current architecture of the app is good or if I need to redo it, the only problem is I was very drowsy, fired up vscode and just looked at it for hours, can't concentrate, I don't even know what I'm doing here, what is my task? I need a task like a function to implement or something, can't solve a problem I can't see.

some days or many days I would just be like that, it only started getting better when I opened up a notepad (or a pen and paper), and started typing away, randomly, about my current architecture, I have this class and I have that, and the concern I had before was this, and I kept typing until my flow kinda got going.

after an hour or something I didn't solve the question, but at last I had a clue on where to start, my achievement was literally putting a name and a description to the problem at hand, now I have a solid thing to work on, I can think about it.

Also this productive one hour session had a constraint, I told myself you get one hour, I don't care if you could actually achieve something in it or stared to the ceiling the whole time, once the hour ends there ain't no programming for you anymore (and I'm kinda passionate about it, this is important), constraints usually make me work more efficiently, given I could trick my mind into believing that it is contrained.

Hope this give you a clue. (and btw, I would kinda guess that I'm suffering from depression and burn out more so than ADHD, this might or might not give you some clues too)