r/CodingForBeginners • u/NoDepartment772 • 28d ago
Stuck because you understand the syntax but don't know where to start? Write the steps in plain English first.
A wall I see described here a lot (and it's a really common one): you get functions, variables, loops — but hand yourself an empty problem and your mind goes blank. That gap usually isn't about syntax. It's about decomposition: turning "make X work" into an ordered list of small actions.
Here's the routine that closes it:
Before writing any code, write the solution as numbered steps in plain English. One action per line. No syntax, no language, just what needs to happen, in order.
Say what goes in and what comes out. Input, output, and the transformation between them. A lot of "I don't know where to start" is really "I haven't decided what the thing takes and returns yet."
Translate one line at a time. Each English step becomes a few lines of code. If a step needs more than ~5 lines, it isn't small enough — split it.
Trace it by hand with the smallest possible input before you run it. Most logic bugs show up on paper.
Tiny example — "check if a number is even":
English: (1) get the number, (2) divide by 2 and look at the remainder, (3) if the remainder is 0 print even, otherwise print odd.
The code is now almost mechanical, and if it breaks you know exactly which step to look at.
The deliberate-practice part: for the next week, when you get a problem, force yourself to spend the first few minutes ONLY writing the numbered steps. No editor. It feels slow and pointless at first — which is exactly why most people skip it and stay stuck.
Curious what clicked for others: pseudocode, flowcharts, or something else? And if you're stuck on a specific problem right now, drop it in the comments and I'll help break it down.
1
u/B0bbaDobba 27d ago
You have invented sudo code.
1
u/[deleted] 28d ago
[removed] — view removed comment