Terence Eden. He has a beard and is smiling.

Terence Eden’s Blog

Theme Switcher:

Why I vertically align my code (and you should too!)

· 34 comments · 750 words · Viewed ~86,198 times


There was an interesting discussion on HackerNews last week about the Linux Kernel coding style. During the discussion, I kicked off a minor holy war about whether one should vertically align code. I'm all for it! Let me explain why. What Is Vertical Alignment? Take this trivial example: int robert_age = 32; int annalouise_age = 25; int bob_age = 250; int dorothy_age = 56; I find easier to …