educative.io

Mind Going Blank When Writing Code

Hi Guys

When I go through the chapters, I am understanding the content, but when it comes to start coding, mind is going blank on even simple things,

Any ideas on what I can do, I am aware practice is the key, what to do when mind is blank

Regards

Mahesh

Hi Mahesh,

Break the problem into sub problems and try to code those sub problems. Whenever you read a statement, spend some time understanding it, then dry run it first on paper. Run your solution for some examples. Then start making the logic on paper. When you have made the logic, now begin to code. And even if you don’t get it right the first time, it’s okay. This is very common when one is new to programming. We are sure you can improve with practice.

Regards,
Team Educative