April 5, 2013 - 1 comment.

Writing Readable Code

xitoeyeAs web developers, we read code all day. Many of us have used style guides to govern how we structure our code. In this video, I talk about what guides the style guides -- basic principles about what makes code readable and why readable code is easier to work with.

You want your code to be expressive, consistent, logically structured, uniform, and manageable. Also, remember the D.A. rule. Want to know what that means? Watch the video.
If you liked this, I wouldn't stop you from checking out "Master Space and Time With JavaScript".

Published by: Noel Rappin in Developers
Tags: , ,


Dan Rench
April 5, 2013 at 12:48 pm

I really like the aesthetics of lining up equals signs but I’m beginning to turn against it. If I’m just adding 1 new variable in a commit, bringing whitespace-only changes along can lead to some misleading version history.

On line length, another factor to consider is if you want your code to be readable on Github. Their code display layout makes it pretty clear they don’t want you to stray too far beyond 100 characters.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.