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

How do you indent?

Name: Anonymous 2009-07-29 12:23

What is your preferred style of code indentation? I personally tend to use the GNU style indent.


static char *
concat (char *s1, char *s2)
{
    while (x == y)
      {
        something ();
        somethingelse ();
      }
    finalthing ();
}

Name: Anonymous 2009-07-29 16:12

>>31
If he were to start a project for hire, it's probable that he would have the ability to set the style guidelines and would actually write code like that.
That's right. I would code like >>26 . I find nothing wrong with that style. If you want to work with me as your project manager, you should at least be able to understand that.
If you find it hard to read code just because there's no whitespace around the operators then I don't need you in my project, since you've obviously haven't been exposed to enough code styles.

Ideally, every C/++ programmer should be able to at least use and understand K&R, Allman, and GNU.

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