DEV Community

Discussion on: How would you define high quality code?

Collapse
 
ogfris profile image
Fris

Some books might define it as "high quality code is when you don't break your software while doing small changes", which is totally not true, if you designe your program to play music, it shouldn't play movies too. For me, high quality code is when your codes are optimized, easy to read and well organized.
If you're afraid of not having a quality code then don't worry, i myself had some very bad habits of writing everything in one file 3 years ago but i fixed it as soon as i realised how hard it was for other people to read my codes. I fixed it with habits, you start by trying to write a well organized file then repeat it with every project you make until it becomes a habit.