Thread: Indentation style and personality

  1. #16
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    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.
    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,815
    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, Buttercup, and read this, this, and this before posting again.

  3. #18
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    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
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    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
    Ticked and off
    Join Date
    Oct 2011
    Location
    La-la land
    Posts
    1,728
    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
    3,445
    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
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    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);
    //}

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, 05:53 AM
  3. indentation error
    By cc870 in forum C Programming
    Replies: 3
    Last Post: 06-24-2005, 11:06 AM
  4. Personality Types
    By Thantos in forum A Brief History of Cprogramming.com
    Replies: 27
    Last Post: 05-15-2004, 05:48 AM