DEV Community

Discussion on: What makes for readable code?

Collapse
 
brsullivan profile image
Braelyn

I think the biggest factors are:

  • consistency in formatting (indentation, bracketing, etc.) and naming
  • refactoring and cleaning up comments once something works the way you want

As far as creating readable code, I think the biggest lesson I've learned was to NOT reinvent the wheel. There's no need to work out a new method of achieving a common goal because the standard is already out there and easily understood by others.