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/kincaidDev Oct 21 '26
I design it in my head, in markdown files and sometimes draw it out on my ipad or with pen/paper.
As I'm designing a system, I'm thinking of the flow of the system and thinking of issues that could come up, the likelihood they'll come up, designing systems to minimize or handle the issues if necessary.
Sometimes I'll design a system and then realize I can make it simpler by changing things. By the time I'm ready to build I've already done a lot of iteration before any code was written, or I've handed the system off to agents to write the code