r/learnprogramming • u/somethingoddindeed • 19d ago
I feel like I’m doing something wrong
Hi everyone,
I’ve been coding for about 3 years now. I started with Python and then went straight into machine learning.
Throughout these years, I’ve watched countless tutorials and worked on different projects by myself.
I also tried to use AI as little as possible because I wanted to actually learn how to code.
For the past 3 years, I’ve mostly been focusing on university and haven’t had a programming job yet.
The problem is that now I’m at a point where I can watch almost any tutorial or read someone else’s code and understand pretty much everything. But when it comes to actually writing code all by myself, I just feel lost. Like I know what needs to be done, but I don’t know how to start doing it.
And this has really damaged my confidence in coding. Especially because I haven’t had a job in this field yet, I feel like I have no real experience, and sometimes I honestly feel like there’s no difference between me and someone who just started learning programming.
I’ve tried finding jobs too, even though university takes up most of my time, but I couldn’t get past the first interviews and most of my applications went unanswered.
Some people tell me it’s because I live in Iran and the job market here is a complete disaster because of the war, inflation, and the economy in general. But I still can’t help feeling like I’m doing something wrong.
Also, there are barely any machine learning jobs here, so lately I’ve been trying to learn some frontend and backend development too. But I can’t help thinking that I’ll just spend another year learning something new and still end up in the same situation.
I actually enjoy coding and I really want to become good at it, but lately I feel like I’m just stuck in this endless cycle of learning without really getting anywhere.
So I wanted to ask you guys, especially those who have been coding for years or have gone through something similar, how did you get past this stage?
And with AI being such a big part of programming now, how do you think someone should approach learning to code? Should I still try to write everything on my own? How do I actually build my knowledge and confidence instead of just watching tutorials and feeling like I understand things?
I’d really appreciate any advice because I’m honestly starting to feel pretty lost.
18
u/Jumpy-Seesaw-2026 19d ago
You need to do actual projects, it's literally the only way to learn
3
u/QuadWingedCrane 19d ago
Practice and patience.
Every masterpiece started as a single, humble paint stroke.
Facebook, Google, Amazon all started off as a couple initialized variables in a ide or text editor.
Don't be so hard on yourself.
Keep at it. Keep thinking how would you approach projects. Then put it down in the code. It may take time to really conceptualize it all, but thats why your a beginner. No need to expect professional ability when we are still learning.
Also, for any project you see yourself getting behind, find something similar and read their code on github. Reading other (good) code as an example will help give you an idea of your own codes structure.
What you've described is a common issue with new and even veteran programmers.
This is a science. Its not easy. It takes Practice.
You got this!
4
u/AdmiralKong 19d ago
Ok, I would not know anything about the job market for programmers in Iran, so can't comment on that.
But it sounds like you never actually developed the ability to go from concept to code. I strongly recommend picking a few personal projects: games, web apps, anything, and trying to develop them without any tutorials that might reveal the architecture to you.
You can read the documentation for the languages and libraries you use, but try to avoid extensive copying of samples.
Work on your ability to take a set of design goals and build a software architecture around them yourself.
1
u/Lumpy-Blackberry-718 19d ago
> I feel like I’m doing something wrong
Not putting more spacing between your paragraphs.
3
u/Own_Age_1654 19d ago
If you want to get good at something, you need to practice that thing, not a different thing. Stop following tutorials and looking at other people's code. That's built competence at believing you're understanding what others are saying, but it hasn't built competence at writing your own code without following someone else's instructions. See how that works?
BS you know what needs to be done but just can't do it. If you truly knew what to do, you could just do it. What you're experiencing is merely the perception that you know what to do, because you're used to feeling like you understand what's happening, because you've just been following along with what others are doing. When you're following others' lead, there's a much lower bar. You don't actually have to understand more than superficially.
Where to start? Start with the simplest thing that you can make run. Even if that's just a tiny standalone script with hardcoded data. Even if it's just "Hello, world!" Then decide what you'd like it to be able to do that it can't now. Then think through the minimal options for adding that thing. Then consider the pros and cons of those options. Then pick one. Then do it. Rinse, repeat.
For example, after writing your initial code that has a hardcoded data structure and prints it to the screen, you might say "I wish the user could change the value of this field", and then you might decide to get input directly from the keyboard and update the data structure in place and then output it to the terminal. If so, you'd need to look up how to get input from the keyboard. And then you'd do that. And then you might wish they could pick which of multiple fields to edit, and so you'd think of showing them a numbered list of fields and having them enter a number and then enter its value, and then you'd do that. Etc. It's just a series of small, incremental problems.
1
u/mxldevs 19d ago
Software engineering is taking requirements, figuring out how to solve it, and then converting the solution into instructions that the computer understands (eg: via coding, or otherwise)
Figuring out how to solve it starts by deciding what components you need (front end, back end, database, platform, etc). Then you might identify what classes you need, how they interact with each other, what kind of interfaces you will provide. It may involve applying software design patterns, deciding what data structures to use and what algorithms to apply.
If the only programming that you've done is taking someone's solution and turning it into code, then you don't know how to start doing it because you've never actually done it.
1
u/Both_Bend_2481 19d ago
> and worked on different projects by myself....But when it comes to actually writing code all by myself, I just feel lost.
That doesn't add up. Did you work on more than 2 projects, or was it 1.1 projects?
1
u/Key_Storm_2273 19d ago
If you want a traditional job with programming, you might need social skills/soft skills/interpersonal skills just as much as actually coding. Otherwise, freelance, self employed, or another line of work is more realistic.
Coding is also more hands on, putting concepts into practice skill, than rote memorizing for an exam, you acquire what you need to know through coding. The specific keywords in interviews are semi-superfluous.
Having some github repos would also probably help your application, but the specific programming skills you’ve learned are also very niche (pure focus on PyTorch stuff rather than integrating AI into software programs, which means you’ve got to be really good at machine learning and have a pitch towards an AI company that is accepting junior devs, not a software company)
1
u/rjcarr 19d ago
Not sure how it works with Iron, but in the US programming staffs are thinning, and it sounds like you don't have a formal education, so that's going to set you behind someone that does (even if you're a better coder).
As for getting better, programming is all about taking problems and breaking them down into smaller problems until you have something that is small enough to solve. Keep solving these little problems, and once you have enough solutions, you can start putting them together.
It takes a lot of practice and patience. Pick a project and implement it from start to finish. A common thing is something simple like a basic board or card game. Good luck!
1
u/Zennixi 19d ago
hi, Im also on that journey and came to that realization a lot sooner than you did but also I think Ive foundbmy solution and hope it can help you think of one tailored to you. I think whats happening is maybe just like me you are a top down thinker and writing code needs bottom up thinking so I suggest you take a journey of learning how you learn, like self surveillance and figuring out what triggers your confusions and freezing patterns when you try to write code but also I highly recommend (this may seem like you starting all over again) but take time to go back to the basics but instead of learning code in terms of syntax etc learn what happens under the hood (ie what the compiler/code language) actually doing does with every written piece of code thereby learning tracing/tracking objects from creation to call to whatever, where they exist in memory and their lifetime
1
u/tilted0ne 19d ago
Ngmi
1
u/Parking_Flounder_712 17d ago
This is more of a mindset shift than advice: as a new grad (particularly in the AI era), it is pretty unlikely that anyone is going to ask you to build something from scratch.
What’s more likely is that you are going to be dropped into a legacy lasagne and expected to read, debug or refactor other people’s code, and being able to read and understand what AI generated code will do before you push it.
I think you are a lot further ahead than you are giving yourself credit for - keep going!
1
u/gooniannuber1 12d ago
I did it too I didnt even know proper OOP yet but I still programed an rl ai but I mean for me it worked out sooo...
1
u/ro_ok 19d ago
I got past this with coding, sometimes am currently stuck here with art.
You need a project. Pick something you think is missing from the world or something you find interesting and build that. For me, this was a simple population similator. Then it was an encrypted communications app. Doesn't matter what it is, you need a reason for the code to exist and some problems to solve with it.
Break down the task ahead of time into small goals. First goal will be setting up your project, try to do this without AI to get the most out of it. This step could easily take you a week to set up the initial project and layout for whatever framework you pick. Do hello world, then start adding a feature, while adding the feature ask if other project setup is needed (linters? tests? libraries?) and add them as you need them. By the end of the first week or two you should be past the blank page problem and have enough to either start over with what you've learned or keep building whatever it is that excited you about the project in the first place.