Do’s and Dont’s Of Coding For Beginners As Well As Advanced Coders

Aatif Mastan
3 min readDec 16, 2020

Hello there my gorgeous friends on the internet, Grady here with an interesting article that will definitely help you become a better coder. So lets get on with it. So today I am going to share with you guys some very important information so that you can analyse yourself and get quickly through coding without any diffuculties.

Whenever you are done with learning to code and all ready and set up to start as a beginner, there might be a thousands and millions of questions flowing through your fresh coder mind, for example how to approach a problem, or what function to use where, whether the program should have an if-else ladder or a simple switch statement. More examples can be using unrelated, unnecessary, insanely long variable / function names. Its completely normal to happen, even with experienced coders. Its never that you will ever write a perfect code. Even me having 6+ years of experience in coding makes foolish mistakes. There’s nothing to be embarassed about in that.

So here are my top 3 Do’s & Dont’s of coding for beginners as well as for advanced coders.

DO’s

1 — “BELIEVE IN AND MOTIVATE YOURSELF”

Sometimes we come last but we did our best. Don’t let that disappoint you instead remember what failed you and try to improve it next time. Always believe that you can do it. Motivate yourself not by reading quotes or following online blogs. Believe me they are nothing if you don’t feel it from the inside. Have the gut feeling to write whatever you imagine. It is never about how good knowledge you have. It is always about how confident you are and will be.

2 — “SHAMELESSLY ASK FOR HELP”

Nobody is perfect and we have to accept that. It may happen that you might get stuck at a point where you have to take help. Whenever you feel like you need help you should always consult your senior coders or sometimes even your juniors can help you well. You don’t need to feel bad when it’s time for you to ask for help because when I had started with coding, I had absolutely ZERO help and was not even allowed to use the internet alone and believe me it was an awful time figuring out how to make it work. So always refer other codes where the logic is similar to your code or the best thing would be consult someone personally.

3 — “DISCUSSION & TEAMWORK”

Always remember to write code with a group even if you have a habbit of working alone, you must first discuss about the problem with your fellows, colleauges, or your teachers. Never write code alone, you will only end up in anger, frustation and tears. A group discussion will always help you better than the internet and may give you some more bright ideas.

DONT’s

1 — “NEVER USE UNNECESSARILY LONGS NAMES”

Please for God’s sake never harass the person who is reading your code with insanely long variable / function names. Always use short and meaningful names for example using nouns for Variable names and verbs for Function names. Suppose if you want to declare 2 variables and add them using a function, then naming the variables as numberOne & numberTwo and naming the function as integerAddition() will achive you nothing but frustation. Instead you could name the variables as first & second and the function as add(). Simple as that.

2 — “Don’t BINGE !!”

Take breaks. That’s all for this. You are not on a movie marathon to sit continously and have to finish it. Never binge on coding. You may enjoy at the start but as you move deep into coding believe me sitting for more than 3 hours is a painful experience. Go out, grab a snack, get some sleep, enjoy life, make new friends… If you selected coding you won’t get time for this later.

3 — “Don’t JUST CODE !”

Always make a habbit to either eat or have a drink while you write code. Doing so will prevent you from getting bored because you don’t wanna get bored from your profession instead you wanna make it as enjoyable as possible. Coffe and Biscuits suit me well. You know better about what you like.

Well by now you might have developed a bad opinion about code. No you are wrong, there is no Good or Bad about coding. Its just that if you like it, its Good, but If you don’t like it, its Bad. It just depends on how interested you are to do it.

Hope you like it, Do follow me on Instagram

--

--