DEV Community

Discussion on: What makes for readable code?

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt
  • Simple. Minimal nesting.
  • Indentation. Consistent formatting.
  • Good naming.
  • Docstring. Doctest. Rather than simply comments.
    • JSDoc also helps.
    • Unit-testing is a separate topic.