How do you develop a programmer's mindset? What role does regular practice and experimentation play? And how do you stay motivated to consistently improve your problem-solving skills in coding?
Follow the DEVteam for more discussions and online camaraderie!
![Cover image for How to Think Like A Programmer?](https://media.dev.to/cdn-cgi/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkegarszpuidsrbi7mmkz.png)
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (7)
To develop a programmer's mindset, you start by whispering sweet nothings to your computer every night, promising to understand its complex nature and debug its darkest fears.
Jokes apart, I think its regular practice and experimentation play the role of daily sessions with your code, where you understand the problems, try to understand its perspective, and gently guide it towards becoming a better version of itself.
Agreed, and I think to add to that, not only experimentation but the inevitable smashing of one's head on the desk when things go wrong, and the ensuing hoards of searches and "try this and that" to fix what isn't working.
You just need to be able to recursively dig deeper into any problem "tree" (or rather "root"?), metaphorical or real, without loosing the "parent" context(s) out of sight, easy peasy.
Languages and tools don't matter, you can dig with bare palms or with a sharp spade, it all comes up to the resulting solution timing...
Motivation... Well, rewarding findings, shiny spades, strong hands, whatnot...
There are 2 big things that come to mind for me:
Being able to break a large problem into smaller, more manageable chunks. imo, this is so important because the code you write mimics how you think about a problem. If you think about it in smaller chunks, your code is likely to follow with isolated concerns and logical encapsulations.
Weighing the tradeoffs to a problem. As programmers we are constantly having to juggle between the "right" level of scope for a technical solution.
A salesman should think in the perspective of the customer
A teacher should think in the perspective of the student
A director should think in the perspective of the audience
Maybe, A programmer should think in the perspective of the computer 🤔
How do you develop a programmer's mindset? -> improve your logic by building your own projects and collaborate in open source projects
And how do you stay motivated to consistently improve your problem-solving skills in coding? -> you simply cannot stay consistently motivated, there will be moments where you'll not be at your 100% and that's FINE. just don't give up when ur not at your best form.
Practice thinking like a developer.