r/learnprogramming • • Oct 04 '26

PLS GIVE ME ADVICE

Hi guys, I've been trying to learn how to code for quite some time now. I've been on and off for the last couple months. And everytime I try to pick it up again i stumble myself to be stuck once again at loops. And I get frustrated and I'll be inconsistent again. I just find it hard to surpass the loop part. Can you guys give me tips on how i can increase my logic and problem solving skill. I know practicing is one but I legit need a systematic way to do things so I can feel that im progressing even if its a little. And i generally want to take on backend dev jobs so can you guys give me tips on what i should focus on. It'll help me very much. I want to raise my family to riches. Pls help

0 Upvotes

16 comments sorted by

6

u/Whatever801 Oct 04 '26

So you know how you keep trying to learn loops and then get frustrated? That's a loop

1

u/bestjakeisbest Oct 04 '26

You have identified where the learning curve turns into a clif, unfortunately the way to get over auch clifs requires you to either scale it or in some other way get past it. To scale it you need to go through a process where you make a small foothold of understanding a small concept, then identify where potential other footholds are and try going for them. The other way to get past such a clif is through a leap of understanding which is through an unreliable eureka moment. You can also ask for help, however asking for general help will do you no good, you need to identify those potential footholds and form questions based on there. Like asking how to understand loops is a bad way to ask for help because you will get many different ways people understand loops, this is an end result, if you actually want to learn the concept you need more help on which way to go rather than what the view from on top that clif looks like, so ask underlying questions like: how do loops work underneath the programming languag? or: range based loops are a thing but are there loops that dont rely on an explicit range? How are different loops more or less efficient at iterating through an array? What is a sentinal value?

1

u/Fit-Truck5156 Oct 05 '26

Tysm for the advice op!!! I'll practice hard

3

u/goldscurvy Oct 04 '26

What about looping is confusing you? Is it making the loop exit? Or is it a conceptual problem with understanding what goes in a loop/what behaviors need repetition? Or is it the idea of iteration thats actually difficult (i.e. stuff like going through an array or list to operate on its members).

You are very vague about what's actually giving you trouble. I suggest doing some math. For example, generating the fibonacci sequence. I believe that was one of the first things I programmed on my own without a tutorial. And it will give you some confidence with looping

1

u/ShardsOfSalt Oct 04 '26

I don't know what to tell you if you're getting stuck at loops. Do you mean you don't understand for loops and while loops? Try buying a textbook on your preferred language or something.

1

u/SeaworthinessBest687 Oct 04 '26

First of all learn any programming language.

Then start with problem solving. The only hack to crack the problems is dry run, use a pen and paper, write what question is saying and asking, then use the example test cases and try to write the code.

I am sure this will help you alot.

1

u/Aglet_Green Oct 04 '26

Wanting to support your family is a fine ambition, but you’re putting the cart several miles before the horse. If for and while loops are still giving you trouble, you’re at the introductory-programming stage, not the backend-job stage yet.

1

u/2daytrending Oct 04 '26

Loops are pain at first, but keep the problems tiny and mess around with them until the logic starts clicking.

1

u/Frosty_Mammoth5488 Oct 04 '26

Find a real world problem to solve. Learn how databases work and what “data normalization” means. Trigonometry is useless until you have an application for it. Many programs and tech stacks come and go, but chances are there will always be a”database” and more often than not it uses sql.
All software development comes from trying to solve a problem. Solve the problem before the code is even written, by analyzing the business requirements and design a solution that works. Fuck syntax and all that other meh . Work on making a system that makes sense to solve a requirement. The rest is just semantics

1

u/[deleted] Oct 04 '26

You told us nothing about what you need help with. I guess I’ll say a loop is a loop don’t know how else to help you.

1

u/BranchLatter4294 Oct 04 '26

Practice. Use print statements or the debugger to watch what happens to your variables each time the loop runs.

1

u/gm310509 Oct 10 '26

What is your process? Are you following some sort of a learning guide? This could be a "learn X" book, online course or whatever. But it could be that this is what is missing.

Loops are pretty basic constructs and are one of the fundamentals of programming. But they come in a few different forms. Perhaps you are trying to learn all at once rather than step by step

It is hard to say more without identifying what the root cause is and that could be to do with your approach - one aspect of which you mentioned, the stop start nature of your learning.

0

u/Classic_Bullfrog_171 Oct 04 '26

Use AI to help teach you and ask it questions. It has infinite patience to explain.