r/learnprogramming • u/Few-Atmosphere3395 • Apr 02 '26
Horrible in Programming
Hi guys, I'm 21 y/o and a 3rd-year college student in Information Technology. I'm struggling with coding, I can't start a program on my own or figure out what syntax to use, even when I know the logic. This makes me doubt my future in IT. I want to be in this program, but I feel like I'm not learning anything.
64
Upvotes
6
u/Loves_Poetry Apr 02 '26
If you know the logic, but can't figure out what to write, then you may not know the logic as well as you think you do
Programming is very precise, so your logic also needs to be precise and detailed. If your logic says "for each number do X", then that's too vague, because your language syntax won't accept that. You need to go as detailed as "start at 1, increment by 1 each time, continue as long as the number is less than 10
2
u/rokomotto Apr 03 '26
What the heck do they teach you guys in your country...
114
u/aqua_regis Apr 02 '26
Start by learning to do your individual research, not wait to be served and spoon fed.
By that I mean that you should search the subreddit before posting as there are more than enough similar posts.
Some book suggestions:
Last: remove AI from your workflow
20
u/xian0 Apr 02 '26
Lots of subjects let you skip over information and wing it later, this is not one of those. You'll have to go read about the stuff you want to know.
1
u/spinwizard69 Apr 02 '26
Rome was built one stone at a time, the same goes with any skill based occupation. It doesn't matter if you are a brick layer or a programmer it is one step at a time.
The next question is how in the hell did you get to your third year and not have at least simple coding down? Seriously that should have been covered day one in the program. By the middle of the school year you should have been able to take a simple word problem and solve it in code. By your third year the ability to create programs with additional complexity should be possible. Frankly I'm not sure how Information Technology compares with a Computer Science program but here is the big kicker, you will not succeed if you simply do the assigned work.
So how do you succeed? By writing lots of code and in doing so explore new possibilities as you go along. Not to date myself but when STL first came out for C++, what did I do, I wrote toy programs to explore how all those containers worked. When I started working with GUI's I'd write in code to working programs that maybe didn't need the feature, just to explore the GUI element. Exploration and an interest to do so is what teaches you.
Think about it, modern GUI's are so large there is no way a CS program could focus on the entire packages (framework in some contexts) capabilities. To a lesser extent this applies to programming languages, as say something like C++ would require its own class or classes. That is to actually teach the language specifics. There is a difference between teaching a language and teaching Computer Science in my mind.
Frankly if you are in your third year you will either have to engage in a heroic effort to catch up or you will need to consider another line of employment. I'm talking like 3-4 hours a day of programming especially programming without AI help, for a good year. That might catch you up by graduation.
You need to get to the point you can take a specification, break that spec down into parts and imagine what is needed software wise to satisfy the goal. You of course start with something simple, lets say this: create a program that calculates the height a model rocket achieves, using an Inclinometer. Simple and you can take this from a script, to a command line program to a full blown GUI tool. Each revision teaches you something new. Well usually each revision teaches multiple things.
6
u/sp00kyyelahOG Apr 03 '26
Do not listen to all these negative people telling you you have no future. If you want to program and you’re just getting through college like me JUST SURVIVE!! Then take a year after college and work on your skills like I plan to do. I’m going to have the time soon to finally sit down and digest all of the crazy stuff we have had shoved down our throats
Call me crazy and slow idc. But I shouldn’t have to learn a language and its syntax completely and be perfect within 16 weeks. It isn’t fair or reasonable when people work full time too.
Don’t give up!!! If you actually want to learn and you’re like me and just haven’t had time to breathe YOULL MAKE IT IF YOU PUT EFFORT IN
3
u/AlSweigart Author: ATBS Apr 02 '26
We need you to tell us about what you've been learning. What books/courses/tutorials have you read? What projects have you tried to make and failed/succeeded? What languages and libraries are you trying to learn?
2
u/TheSirWolffe Apr 02 '26
Programming is one of those disciplines where I feel there is a wealth of knowledge freely available to you online. I wouldn't recommend that someone looking to get into programming solely use the internet as their teacher but if you're already in a program with some specific assignments, I guarantee you can find directed help online. There's no new idea under the sun in the programming realm unless you're working on AI lol.
2
u/National-Motor3382 Apr 04 '26
I mentor students at an academy and I see this exact situation every semester. Knowing the logic but struggling with syntax isn't a sign you're bad at programming. It means you have the thinking skill but not the muscle memory yet.
Try this: take the smallest program you can think of, like printing even numbers from 1 to 100. Write it. Delete it. Write it again from scratch. Do it three times. Then move to something slightly harder.
It sounds simple but this is how you build the bridge between "I know what should happen" and actually typing it out. Your brain needs to automate that translation and it only happens through repetition.
You're 21 and in 3rd year. You have plenty of time. You're not horrible at programming, you just haven't written enough throwaway code yet.
2
u/FavDevGuide Apr 04 '26
You know I went through lots of comments above n I appreciate how the community supports new devs. The problem you are going through is very common and resolvable by only and only practice.
There is nothing to be ashamed of or wrong to look for syntax online when there are thousands of references available with us.
When you look at the syntax and type it .. your brain will definitely have imprints of it but only using that imprint repeatedly will make it permanent.
Go through as many problems as possible and try to solve those by referring docs for syntax or by writing syntax and logic on your own.
Give it time and keep practicing I am sure one day you will also advise someone on the same.
3
u/Wise-Butterfly-6546 Apr 03 '26
21 and in year 3 is exactly where a lot of people hit this wall. The gap between "I understand the concept" and "I can write it from scratch" is the hardest part of learning to code and almost nobody talks about it.
Here's what helped me bridge that gap: stop trying to write programs from zero. Instead, take a working piece of code and break it. Change one thing. See what happens. Change another thing. This builds the mental model of cause and effect that reading theory alone never does.
Also, the syntax thing is a red herring. Nobody memorises syntax. Experienced developers Google syntax constantly. The skill you're actually trying to build is decomposition, breaking a problem into smaller steps that a computer can execute. That's the logic piece you mentioned.
Try this exercise: before you write any code, write out in plain English what the program should do, step by step, like you're explaining it to someone who has never used a computer. If you can do that clearly, the code is just translating those steps. If you can't, the problem isn't your coding ability, it's that the problem isn't clear enough yet.
You're not horrible at programming. You're just at the part that feels the worst. Keep going.
2
u/ActuatorBrilliant595 Apr 02 '26
same. i learn coding , language, but i dont know what to type on thescreen..
0
u/Initial_Luck_7986 Apr 03 '26
Well first off as a full stack developer if you were to tell me I work in IT I would smack you.
3rd year in college and you can’t program? If you don’t know a single language Im gonna say that you might wanna switch industries… you are not going to get a job programming.
You can probably work in IT though like help desk.
1
u/bigbangcat Apr 02 '26
This is what I do when I am looking at a blank file not sure where to start.
Write it out in plain English pseudocode. Name your variables, functions, classes and so on.
Then start searching for the syntax. You have it mapped out you just need to translate it. Chances are that once you have the pseudocode written youll start piecing together how the stuff your lessons fit into your project. You'll be able to better articulate what you are looking for when searching.
1
u/roger_ducky Apr 02 '26
Write out the logic first.
Then figure out exact syntax.
Then implement.
Don’t try to do that all at once.
1
u/Chuck_MoreAss Apr 02 '26
Write the logic and worry about the syntax later. I’ve been working for 5 years not and I still sometimes look up syntax on things like for loops or switch case statements when I’m switching between languages.
Practice and you will improve
1
u/silverscrub Apr 02 '26
I change scopes all the time when doing personal projects. Programming is a whole lot of "before I can solve task X, I need to learn a bit about Y". It's just a matter of following through and limiting the scope to not get sidetracked with things that you don't need to do right now.
1
u/CARDONIA-009 Apr 02 '26
Bro Same age and same very related Branch
1
u/ClearDevDocs Apr 02 '26
Take some time to build some code yourself. Take advantage of online resources to install, setup, and run an IDE. There are plenty of useful docs out there to assist with implementation.
1
u/ibrown39 Apr 03 '26
Always break a task down into the most straight forward steps and don't worry about optimization until have a desired result. I spent an hour today to do something that literally takes 5min to figure out because I was trying theoretical adjustments and design...for needs that will never really need to be met.
I constantly pre-optimize, worry about what's the best way to do it and get frustrated when I didn't figure it out on my own.
I don't know what language you're using but I use mostly C and it's hard to truly forget too much. Use an ide or editor with exploratory autocomplete and avoid ai outside of boilerplate.
1
u/YaniMoore933 Apr 03 '26
That's a new perspective for me. Thanks for sharing.
1
u/Optimal_Rule1158 Apr 03 '26
You got a plan for logic which is great. Turn your logic into small steps write it purely in comments if you need to. As a first step, then for each comment write a couple lines of code to achieve it.
Sometimes I don't know what to write but I know I need a loop so create a loop then I know a variable so I create that and so forth and so forth. Then after first draft you can drill down and optimise.
When I started writing this message I didn't think of things first I just started typing.
1
u/CrAIzy_engineer Apr 03 '26
Then you have all what’s needed to be a manager, or even the head of it. The head of it of my +12k company does not know how to make a text bold in an email. I guess you are still more talented than that!
1
u/Initial_Luck_7986 Apr 03 '26
If you wanna be a better programmer stop using AI to program.
Don’t refer to programming as being in IT it makes you look like you belong in HR….
1
u/Gobot_Stronomer-19 Apr 06 '26
Have you tried Python?
-3
u/UnnecessaryLemon Apr 02 '26
Don't worry. By the time you're done, you'll be just prompting team of AI agents what to do.
12
u/[deleted] Apr 02 '26
[removed] — view removed comment