Developer tips you need to know

Developer tips you need to know

ยท

2 min read

Before building a website

People usually say to learn HTML, Css or Javascript or any web technologies

Or backend like node js, mongo, firebase etc.

But there is something more important than that before getting started / while building

code.jpeg

๐Ÿ“Œ Make sure you have a proper folder structure before writing the code

You cannot just fill code in your app just like that

๐Ÿ“Œ Make sure the number of lines in a file doesn't exceed a specific limit

And incase it exceeds make sure you split the code into different modules or files

๐Ÿ“Œ The character limit of the line of code also shouldn't exceed much

You can check some of the eslint best practices for this

eslint.org

๐Ÿ“Œ Make sure you add comments in the code. Even if you are a pro in coding if someone else views your code they must be able to understand

๐Ÿ“Œ Have meaningful names,

let a = 10 โŒ
let num1 = 10 โœ…

๐Ÿ“Œ When building also make sure you use constants and make sure similar code is not repeated.

๐Ÿ“Œ There is something called TDD - Test Driven Development

Most don't use it, make sure you write test cases both frontend and backend it is essential for building a perfect application

๐Ÿ“Œ An app created with test cases will be more noticed than a normal app especially in interviews

๐Ÿ“Œ Even after developing an app and pushing your code in git make sure you specify the version (Eg- node or react version ) of the technology you have used

๐Ÿ“Œ Because some cases people may clone your repository & if it doesn't work your work may get unnoticed

๐Ÿ“Œ Above are some of the points which I look into working on other people's code especially

Or when I develop applications

If you have any more input feel free to mention in the comments below.

If you find this post valuable share it with your friends

Lets connect Twitter

Did you find this article valuable?

Support Dhanush N by becoming a sponsor. Any amount is appreciated!