DEV Community

Discussion on: How would you define high quality code?

Collapse
 
revskill10 profile image
Truong Hoang Dung • Edited

To me, high quality code means less lines of code, but has more power. That power might be a useful abstraction, or it's just a useful algorithm to solve repeatable problems.
And if you want more quality of your code, make it easy to test, the easier to test a code block, the more quality that code block has.
And if you want even more quality of your code, make it fast. If your language couldn't make it fast enough, change the language.

Collapse
 
juliatorrejon profile image
Julia Torrejón

How can you make your code faster?

Collapse
 
revskill10 profile image
Truong Hoang Dung • Edited

"Make it fast" means you should use better algorithms or data structures to solve the problem. Because as you know, to solve one problem, there're many ways to do it. So it's also called optimization of the code to use better libraries, for example.