DEV Community

Discussion on: Clean Code

Collapse
 
peter_brown_cc2f497ac1175 profile image
Peter Brown

The purpose of all of these rules is readability. There is nothing less readable than having a code base with needless needless amounts of functions and needless amounts of abstraction.. This notion that functions should only be 6 lines of code is silly and counter productive. As one of the other commenters mentioned, readability is most important.

Collapse
 
tastaslim profile image
Taslim Arif • Edited

Minimal number of lines of code, classes, functions etc. Less code means less headache, less bugs and less maintenance cost.
My purpose is to tell people not to write 100s of lines of code in the same function. At the end Readability and uniformity is what matters and same I am trying to convey here.

Collapse
 
peter_brown_cc2f497ac1175 profile image
Peter Brown

Less code does not mean less headache. Better to be more verbose and readable then too terse.

Some comments have been hidden by the post's author - find out more