DEV Community

Discussion on: How would you define high quality code?

Collapse
 
r0f1 profile image
Florian Rohrer

My personal definition is very subjective: A code is of high quality if

  • someone other than the author can read and understand it, without investing too much time and coginitive effort
  • it follows the conventions of your field (using familiar variable names, familiar abbreviations, familiar unit systems), whatever they might be.
  • and one thing (source file / class / package) solves one task.