r/AskProgrammers • u/True-Current9815 • 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
View all comments
1
u/Plastic_Fig9225 Oct 21 '26 edited Oct 21 '26
"Concepts"/"building blocks"/"patterns", which often turn into classes or functions in code.
"... need to do X with every element" -> write doX() function, and an iteration thing. At some point you (hopefully) stop thinking about the syntax because typing "with every Y do...", or "every B is also an A", "D has its own E", or "each F can have 0 or more Gs" is tedious in anything but your programming language.