Being motivated isn't same as being excited to do something. Motivation is needed for doing something that you aren't excited about. You maybe excited to code today but that excitement maynot persist tomorrow.
It's easy to do things that you are excited about but the difficult part is to force yourself to do the things that you aren't excited about.
So let me give 5 tips on how to stay motivated while coding that will help you to become a better programmer.
It's critical to have right mindset while coding or learning to code and having right mindset can put you ahead in great progress.
Our mindset will affect our productivity and being affected can hinder our progress and may also lead to procrastinating.
So always have a proper mindset while coding and your brain shouldn't think of some other work like eating or playing games.
If you are learning to code then know that everyone is different when it comes to learning where some people may learn faster and some people may learn slowly.
Give yourself some time to learn and discover how long it takes for you to understand concepts in coding and to write your own code efficiently.
Comparing with other's progress is just gonna demotivate you and is counter productive. Instead, compare yourself with yesterday how you were and that's gonna improve your progress.
Listen to music(if it helps you) while coding and it will keep you away from all your distractions from the world.
Quit multi tasking. Many people use mobile phone(especially social media) simultaneously while coding which will lead to procrastination. Stay away from it or turn on the aeroplane mode and be in your own world of coding.
PS: If you use mobile's hotspot for internet to your laptop and and sick of clearing social media notifications then download ZEN mode app which will turn off the data usage for certain time(you can set it manually) on all the social media apps.
Clean desk doesn't always has to be expensive or be fancy but it must look neat that brings pleasure to stay productive.
Keep your desk so good that looking at it, you must feel to sit down and get some stuff done. Clear all other stuff which will distract you.
People may laugh at you because you are coding or learning to code when they aren't because they don't know what it takes and what it is to be a programmer.
People may even pull you down to thier level or lower than them by suppressing you by thier words but you shouldn't care about that at all.
Surround yourself with people(I mean stay in contact) who have similar goals which will make it easiar to do something that you want to.
Also read: Improve your Productivity
That's it from this blog post. If you liked it then do share this blog with your friends or people who wanna get into programming world. Thank You!