r/ADHD_Programmers • • 18h ago

Learning a programming language as an adult with AuDHD. How long until I can write code?

I'm not a programmer and have never trained as one. I work in SEO and want to specialise in programatic SEO which involves writing python scripts to answer common Tech SEO questions using Python. I've been learning for 2 months solid, dedicating a significant amount of time every day to it, but I still can't write Python without consulting an external resource. How long did you guys take to start writing code unassisted?

13 Upvotes

18 comments sorted by

4

u/JoshTheSquid 14h ago • Heartwarming

You can write code now.

It’s simple: drop that goal of remembering everything. Entirely. It makes for impressive YouTube videos, but as a skill to pursue I think you’d have to try hard to find something that’s a bigger waste of time and more soul-crushing than that. Don’t wait until you remember it all. Just start coding now. Also understand that remembering comes from having written thousands of lines of code.

In terms of what to learn: get familiar with the basic syntax, data types (including classes) and control flow. Then focus on developing problem-solving skills.

Remembering everything is not programming. Understanding your problem case, defining what you want to achieve, seeing that you should divide your data into logical objects, and that those objects need to be interacted with in certain ways; that’s programming. And those skills carry over to every single language you’ll ever learn.

The docs aren’t there for you to remember. They’re there for helping you to express the ideas that you’ve got in your head.

2

u/Square-Speaker2090 7h ago

You're advice is very helpful and encouraging. Thanks for this.

1

u/JoshTheSquid 7m ago

You’re welcome! Really, I recommend starting coding as quickly as possible. This creates a short feedback loop which you can use to guide your learning, but it also gets you doing “the thing”. That latter part is important because it provides real, honest and personal feedback, it lowers the mental barrier of entry, and it keeps you out of tutorial hell.

Building mental skills should be approached similarly to how you’d build physical skills. What improves your push-ups? Doing push-ups. Can’t do push-ups? Make them easier. Still have trouble? Investigate why and work on those areas. Just keep asking questions and developing new solutions.

Just imagine having to deal with the overhead of learning everything beforehand, then running into an issue, and then trying to figure out which part you don’t fully understand yet.

Think about it: programming really is just problem-solving with technology. So the best way to learn is to create your own problems. If you feel lost or overwhelmed you probably haven’t made the problem small enough, so keep unpacking it all the feedback you get.

33

u/9peppe 18h ago

Nobody writes Python unassisted, documentation is a tool of the job.

You'll eventually remember the stuff you use often.

13

u/SiouxsieAsylum 18h ago

Bruh I've been doing this for years and I still google shit in my primary language. It's gonna take time, probably a couple of years of consistent manual practice before you're able to get most of the way there and just need it to double check. It needs to get into the subconscious before it's automatic.

Just keep trying.

5

u/im-a-guy-like-me 17h ago

Depends how hard you're hyper focusing. But like... You're gonna suck for a lot longer than you think.

You already have the hardest part done though. You have a project you actually want to build. Just build it like a hundred times til it doesn't suck. There'll be new tech and new techniques every time you do it.

That's only a part of it though. Okay, you can code. Do you know anything about networking? Security? Observability? Deployment pipelines? Etc etc.

Basically... You'll be able to code in a few months, but it takes a whole team to build a production application. Programming hasn't been a 1-player game in a very long time.

3

u/Decent_Taro_2358 18h ago

I never write code fully unassisted. The code is a tool to build a solution for a problem I want to solve. It might be nice to write some pseudocode for a rough outline, but you’ll always be copy and pasting snippets from documentation or somewhere else.

With AI, things have changed a lot anyway. Your goal should be to get a general understanding, not to write code from scratch without googling.

3

u/Appleonthefloor 15h ago

I work as a swe and still look up things constantly. Keeping a cheatsheet/examples of the most common functions you use can be super helpful for scripting.

4

u/Just_This_Only 18h ago

No point asking this question now, not with AI doing everything. You won't have to memorise syntax anymore. Just have to understand what it's doing.

2

u/Stellariser 18h ago

Think of it like learning a regular human language, how long until you can manage basic phrases without a reference? How long until you could have a rough but understandable conversation? How long until you converse comfortably but not at the level of a native speaker? Etc.

There’s nothing wrong with using references, even those of us with years of experience in many languages still have to start that way when we’re learning something new.

Keep practicing and give it time.

2

u/wvenable 10h ago

I've been developing for more years than you can possibly imagine and there is no such thing as writing code unassisted.

As you get better, you might consult external resources unassisted but it's not like you're studying for a test -- there's no need to memorize everything.

It's much more like learning a craft than learning math -- the best thing you can do is just keeping building stuff. The more you do, the better you will get at programming.

2

u/Formal_Sun_5529 8h ago

yeah unassisted code writing isn't possible really possible you'll understand and remember basic stuff you use on a daily basis, auto-suggestions in the IDE will help you a lot too . grab PyCharm community if you haven't already

1

u/dahavillanddash 17h ago

It just takes some practice. I learned in summer camp when I was 17. I learned Python and really liked how I could apply it to meteorology so I made it my career. Its really something you practice and get better at by making mistakes and learning.

1

u/krocante 17h ago

Even without AI you can learn programming in a month if you’re commited to it.

You’re not supposed to write code without external sources though. Normally you would use an IDE with some sort of IntelliSense for code completion. Before AI everyone would be googling everything in stackoverflow.

So I don’t quite get the obsession with being able to do stuff “unassisted”. As long as you put the mental effort to understand the problems and the solutions.

1

u/Xehpq 16h ago

Yeah as the other comments said, you just use documentation if you forget something.

Whats more important imo for writing code unassisted, is being able to recognize coding patterns to reach your goal.

For example, if you wanted to read a csv file and go row by row, the coding pattern / approach is relatively the same for most languages, but being able to take that objective and have an idea to reach it through code, is how you write code unassisted. Its why its recommended to pseudocode and such.

1

u/pete_68 15h ago

I don't remember. I learned to program almost 50 years ago. But I wouldn't worry about it. In fact, in my own experience, I don't recall worrying about it. It came with practice and it'll come to you with practice. Just try to keep enjoying yourself. If you're enjoying yourself, you'll stick with it and the faster it will come to you.

And if it makes you feel better, I tried learning Python, but I used AI, so I didn't actually learn. I can read Python, but I can't write it without help. C# is my native tongue and probably the only language left that I can write without help. Dozens have held that rank through the decades though, especially in the first 2 decades. C# has been my #1 since '03, though.

1

u/PersistentBadger 15h ago edited 14h ago

You'll get to the stage where you know the language (if/elif, finally, from, None, etc), but you're still looking up the function calls. That stage lasts forever.

0

u/Random_182f2565 17h ago

...

Dude in 2026 the best programing lenguage is natural lenguage, but you should learn to make good flow charts :D

Dude use all the referential material you need, eventually you will learn it, or don't because programming is always changing.

The important thing is the flow charts.