Like Tree10Likes

Indentation style and personality

This is a discussion on Indentation style and personality within the General Discussions forums, part of the Community Boards category; Originally Posted by Elkvis absolutely, but being able to look at the code someone writes, and based on the bracket/indentation ...

  1. #16
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,581
    Quote Originally Posted by Elkvis View Post
    absolutely, but being able to look at the code someone writes, and based on the bracket/indentation style, and know more detailed personality information, would add another dimension to screening applicants.
    Or bring out some new kind of dystopian reality I don't feel much comfortable with.

    In any case, that would defeat all that has been advanced so far; That one should choose their style and be consistent with it. In this imaginary scenario where we would be screened also based on how we style our code, it would probably be a bad idea to stick to your preferences. Soon enough we would be formatted to a "safe style", one that would give a job. Considering that really it's not difficult to change styles (for instance, I use two completely different coding styles whether I'm doing C# or C++), I find this whole idea pretty mute.
    Last edited by Mario F.; 11-29-2012 at 05:46 PM.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  2. #17
    Registered User
    Join Date
    Jun 2005
    Posts
    6,646
    I remember one team member who would check code out of the repository, hack away, and run it through a beautifier before checking it back in. One did not want to look over her shoulder when she was editing.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Sunshine, and read this, this, and this before posting again.

  3. #18
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,274
    Quote Originally Posted by twiki View Post
    I've avoided learning Python because the interpreter is very picky about indentation. The TAB width etc. have to be just right or you get errors.

    So rather than editing my preferences for vim, I just decided that Python wasn't for me.

    I don't know if that has changed with Python since, but I've not bothered to check.
    There are some hypothetical problems you could encounter because of how Python processes indentation. In practice, I haven't had any issues in over 10 years of using it.

    If you can't maintain consistent indentation, that's between you and your text editor.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  4. #19
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,274
    Quote Originally Posted by Elkvis View Post
    absolutely, but being able to look at the code someone writes, and based on the bracket/indentation style, and know more detailed personality information, would add another dimension to screening applicants.
    "What is your preferred indentation style" is not a relevant question. "Can you follow the indentation standard used on this project" is a relevant question.

    To pass judgment on someone's indentation style, without even bothering to ask if they mind changing how they indent, would be incredibly unfair, bordering on ludicrous.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  5. #20
    Registered User
    Join Date
    Oct 2011
    Posts
    890
    Quote Originally Posted by Mario F. View Post
    I had a chill. I couldn't avoid thinking of eugenics.
    Ouch! That was definitely not the way I was thinking about it.

    In my experience, variety of viewpoints has been very beneficial. I've done my best work in a rag-tag team: very diverse backgrounds, and very different viewpoints. Not opposing, but complementary.

    I think I was having optimistic daydreams, of teams that gel better, of managers that actually manage -- and divide up their workforce into efficient teams. Reality is, of course, different.

    Quote Originally Posted by Mario F. View Post
    Lets either remain ignorant, or simply accept that study and determination is the road to a correct approach to solving a computing problem.
    I think I must agree with you on this. I don't want to, but I think you're right.

    Consider all the advances made in data mining, and how they're being used nowadays. Ignoring the few dubious claims about security or war against (whatever is the current boogeyman), data mining in reality is purely a tool for controlling and manipulating large masses, and allowing personalized exploitation schemes to better squeeze the maximum profit out of each target individual.

    Indeed, some stuff may indeed be better left unresearched, so it stays out from the greedy-grubby-grabby hands of the average person/company/organisation. This is probably one of those cases.

  6. #21
    Registered User
    Join Date
    Oct 2006
    Posts
    2,588
    Quote Originally Posted by brewbuck View Post
    To pass judgment on someone's indentation style, without even bothering to ask if they mind changing how they indent, would be incredibly unfair, bordering on ludicrous.
    way out of context on what I was getting at. I wouldn't advocate using coding style exclusively to determine a candidate's eligibility. it's just another tool in the box.

  7. #22
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,274
    Quote Originally Posted by Elkvis View Post
    way out of context on what I was getting at. I wouldn't advocate using coding style exclusively to determine a candidate's eligibility. it's just another tool in the box.
    You can tell a whole lot about someone's personality by their gender as well, but I think we all agree that that's off limits. It's not like I've thought about this much until today, but indentation is another one of those "might matter, but let's not go there" sort of things.

    If a person can't indent according to project guidelines, that is a management problem, not an indentation problem.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Code formatter for indentation, style...
    By learn in forum General Discussions
    Replies: 5
    Last Post: 01-13-2011, 09:42 AM
  2. indentation o indentation!
    By rogster001 in forum C++ Programming
    Replies: 18
    Last Post: 09-23-2009, 06:53 AM
  3. indentation error
    By cc870 in forum C Programming
    Replies: 3
    Last Post: 06-24-2005, 12:06 PM
  4. Personality Types
    By Thantos in forum A Brief History of Cprogramming.com
    Replies: 27
    Last Post: 05-15-2004, 06:48 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21