Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Tabs vs Spaces (yes, again!)

Name: Anonymous 2008-04-22 0:55

PIG DISGUSTING

{
    int a    = 3;
    int ab    = 4;
    // ...
}



{
   int a  = 3;
   int ab = 4;
}


BEAUTIFUL AND NICE

{
    int a  = 3;
    int ab = 4;
}


Style 1 (all tabs) will look fucked up vertical alignment with different tab widths. Style 2 (all spaces) will look weird to those used to different tab widths. Style 3 (tabs to indent, spaces to align), on the other hand, is made of epic win because it allows one to change the tab width without losing the nice vertical alignment, and those who really like all spaces can easily have their editor auto-convert tabs to spaces.

Style 3 > Style 2 > Style 1. If you use Style 1, you're an asshole.

Name: Anonymous 2008-04-22 12:10

The problem is that we still store source code as plain text.

If we used binary formats containing some sort of parse tree, everyone could change the layout to whatever they liked. Plus, syntax highlighting and code completion would be easier to implement, and compiling would be faster because you wouldn't have to do text parsing first.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List