Posted by: terryhowe | October 4, 2009

Clean Code: Formatting

Formatting is mostly a religious war, but there are some standards that everyone should follow.  If there is not formatting, the code is unreadable.  Some points from of Robert C. Martin’s Clean Code:

  • Keep file size small
  • Use openness between concepts
  • Keep the vertical density high
  • Keep related items close together.
  • Lines should generally not be much over 80 characters long.
  • Use consistent indentation.
  • The team should decide on rules and stick to it.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s


%d bloggers like this: