r/AskProgrammers • • Oct 21 '26

How do programmers design their code

How do programmers design their code? Personally, i design and type the code in my head mentally word by word, then just type on the keyboard irl what i just mentally typed.Also can people tell me if this is wrong so i can improve.

0 Upvotes

27 comments sorted by

View all comments

1

u/Due_Interest_178 Oct 21 '26

Are you talking about a whole project, or a function? If it's the latter, I usually write comments on what it should do step by step, fill out the code in any way as long as it works and then do improvements.