Hacker News new | ask | show | jobs
by glxybstr 4215 days ago
The author kinda contradicts himself by saying you should vertically align your code, but then says use proportional fonts if you find them more readable. (Not to mention, proportional fonts don't allow you to vertically align things well)

is it more common to align the values left or right with decimal places?

eg

  var foo =  1000;
  var bar =    10;
vs

  var foo        = 1000;
  var longerName = 10;
1 comments

(Author here) You're right, it is contradictory. We'll never reach a perfect blend of universal readability an personal preference.

That said, I like the alignment of your first example. It depends heavily on the context of those variable, naturally.