I don’t get JavaScript. I can’t make components from scratch. My mind goes blank when I stare at a blank JavaScript file. I guess I can’t do it because I don’t know how to think like a programmer”.
Sounds familiar? You’re not alone, my friend. Many people who tried to pick up JavaScript as their first programming language faced the same problem.
Heck, even developers who are already coding in another language face the same issue with JavaScript too. Instead of “I can’t think like a programmer”, they say “I can’t think in JavaScript”.
But no more. Let today be the day where you learn to think like a programmer.
You can already think like a programmer.
Have you tried simple exercises on about JavaScript on places like Free Code Camp, Code Academy or Code Wars?
If you did, you already know how to think like a programmer.
The real reason your mind blanks out when you face your JavaScript file is likely because of coder’s block. You’re scared to write JavaScript that doesn’t work. You’re scared to face the errors. You don’t know how to begin.
Overcoming coder’s block is simple. You can follow these four steps:
1.Break down the problem into small problems
2.Find solutions to your small problems
3.Assemble the solutions in a coherent manner
4.Refactor and improve
I have this problem more than enough. No matter which language I use, if it will get a little too complicated my brain just blanks out and just shuts down because it is afraid of all the things he doesnt have an answer for.
BUt i guess that is someyhing that you just have to push through and you can practice this by doing more little programming tasks until you do it naturally.