Mindset for Codingš§š»

Intro
Are you a noob coder?
Do you want to master coding?
Are you getting frustrated while coding?
Then this article is for you. Letās dive homiesā¦
Prepare for being smart šØš»āš
The preparation part is essential to starting the coding. So, be ready with knowledge of the logic you will write and how we will execute it. If you have this knowledge and details, you are very clear about your requirements.
š”Tips - Use comments
Donāt waste your time with Flow charts and blah blah things. Just start coding with comments. It will help to think through the step-by-step procedure for your coding. And the comments should be in your words. They will make a personal connection between you and your code. So use the comments.
const canvas = canvasRef.current;
const ctxt = canvas.getContext("2d");
ctxt.clearRect(0, 0, canvas.width, canvas.height); // Clear the canvas
ctxt.save(); // Save the current state
ctxt.translate(canvas.width / 2, canvas.height / 2); // Move the origin to the center of the canvas
ctxt.rotate(angle); // Rotate the canvas by the specified angle
š§š»āš»Donāt learn from the language, learn from the scenario
See dude, all programming languages have the same kind of code, like if conditions, loops, objects, and arrays. So donāt waste your time learning the language. My advice is to choose a programic language, create more different scenarios, and try writing the code. It will improve your creative and logical thinking.
In the initial days, try to write a single scenario. That habit will handle the rest of the things.
Do copy and pasteš
If you have started coding as a career, you will try to memorize the syntax. Please donāt do that. You will learn in the flow. Do the copy and paste from the internet and the documentation. And you are not in an exam room. So, donāt feel guilty about doing the copy (Ctrl + c) and paste (Ctrl + v). Run your code, you will definitely face the error. Read the error with patience and courage. And try to solve the error with internet blogs (AI should be the last option).
This habit will give you reading skills (Yes, reading is a skill).
Reading is the essential Key to writtingā¦
Compare the work, not the person š¤
In your career, you will meet so many coders. Keep in mind that you are unique. So, donāt get scared of those people. Be friendly, it will give you knowledge and help. If you get a chance to see them coding, donāt compare it with yours and theirs. Just compare the style of coding. And try to write your code more stylishly. Because they have years and years of experience. So, utilize their knowledge. Donāt create the inferiority complex.
Conclusionā¦
If you are a new coder, donāt break your head. Be cool.
Just beat itā¦
Subscribe to my newsletter
Read articles from Vigneshwaran Arumugam directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
