Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Source Code Typography (naildrivin5.com)
2 points by Garbage on May 30, 2013 | hide | past | favorite | 1 comment


    > This is typeset poorly, insomuch as it does not honor the readability 
    > of the content, instead hindering it.
    var x = shape.left()
      , y = shape.right()
      , numSides = shape.sides()
      ;
This typeset is meant for better diffs. When adding a new var declaration, one will find

    + , foo = bar
Instead of

    - numSides = shape.sides();
    + numSides = shape.sides(),
    + foo = bar;




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: