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:46

>>20
How about this?


<?xml version="1.0" ?>
<program language="C">
    <include type="system">stdio.h</include>
    <function type="int" name="main">
        <argument type="int" name="argc" />
        <argument type="char **" name="argv" />
        <code>
            <call function="printf">
                <argument type="char *">&quot;Hello, world!\n&quot</argument>
            </call>
            <return>0</return>
        </code>
    </function>
</program>

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