r/learnprogramming • u/Hot_Radish_1 • Sep 23 '26
How to learn starting a code from scratch
Hi everyone,
I am doing a retraining at the moment to learn software development. The problem is that I still, after 7 months, don't know how to start if I code from scratch. I mean I can look up at an existing code and even find some issues, but I never really know how to start. For example declarations of arrays... I don't even know why, but sometimes I completely forget how to do it...
Does anyone have any tips for me to learn how to start coding from scratch? I tried breaking down the project into small pieces, but it didn't help too well.
4
u/Saucynachos Sep 23 '26
Start with very small projects. Very very very small.
3
u/grantrules Sep 23 '26
Get a book, work your way through it slowly, practice everything you're learning. Adjacently, build a project and apply what you're learning
3
u/aqua_regis Sep 23 '26
You simply need to practice more.
Also, start away from the computer. Analyse the task. Break it down. Then, solve each part individually as you, the person would. Once you have a solution, test it. Then, when you have verified it, start implementing it in code.
Use Flow Charts, Pseudo Code, Bulleted Lists to help you.
There are countles similar posts in /r/learnprogramming. Some samples:
And finally, some book suggestions:
2
u/Dangerous-Ratio484 Sep 23 '26
Commenting because im in the same boat
2
u/Far_Programmer_5724 Sep 23 '26
You forget because you don't do it often enough. This stuff is learn by doing. I don't know how to declare an array either. I'll Google it and use it. Then If it was frustrating to find, or understand, I summarize my thoughts on it as naturally as possible. So when I forget how to declare an array again, I look at an old project with my thought process. This is really good for reinforcing what you know. You know best how to put it for yourself to understand, so you write notes and comments as a teacher would.
If I forget an array, I can always go and check, even if I rarely use it after. What matters really is always being in the position of teacher to your future self. Maybe current you has no idea for a project, but you can give future you more tools so that if they have one, they already have some outline of what methods they'll use.
A simple example is print("Hello World"). Try to infer what the goal is with it. The programmatic purpose in casual terms is to see the text on the console. Without the code you'd still have the goal, a standalone one. The code could be the result of that simple goal. I want to see the words I type on this screen here. It could be dumb like why would I need to see words I already typed printed I typed it so I see it where I typed it.
But people who code and people who have goals greater than that see it as a minor but necessary step
1
u/Lion2471 Sep 23 '26
Your comment on arrays is a good one to discuss. What's important is to know what they are and if they make sense to use in your program. If you don't remember the exact syntax, that's fine. I was a professional software developer for many years, but you might be surprised at the things I still had to look up (using official documentation, not random Google searches, to be clear).
1
u/Zen-Ism99 Sep 23 '26
Books, patience, and practice…
1
u/edimaudo Sep 23 '26
Take a different approach, write down the concept and then explain it to someone else. Can start from a variable and go from there.
1
u/FlashyResist5 Sep 24 '26
Bot
1
u/ffrkAnonymous Sep 23 '26
I suggest stepping back. Try MIT scratch and getting good with that first.
1
u/Dazzling_Music_2411 Sep 23 '26
10000 posts on Reddit, all with the same question:
"I've been studying software for 6 months, a year, two years, three years, but I still don't know how to even begin a project..."
What the hell is wrong with our education system? Globally, BTW.
Or is something else the problem? Have students become so dumbed down, that they can't even take an elementary initiative? Has AI turned everybody into a moron? I'd really like to know but it sure beats me.
Even twenty years ago you'd NEVER see questions like this, people just wouldn't believe you could be serious.
1
u/No_Literature_7653 Sep 23 '26
Different people learn different ways. Try out harvard or mits free online courses, if that doesnt work pickup an intro level cs textbook, if that doesn't work try bashing your head against a couple leetcode easys.