|
That's kind of a shallow analogy.
It's like comparing Tesla's love for physics and women.
You just cannot seek connections between ones physical appearance and mental capabilities.
|
|
|
|
|
Years of research have shown that I can develop software just as well in jeans and tennis shoes as compared to slacks and dress shoes.
|
|
|
|
|
It was, of course, somewhat of a generalization - my wife tells me I look like a tramp on the days I can't be asked to shave.
|
|
|
|
|
Errr.. no.
For years the military has used attention to excruciating detail in training to get soldiers aware of small things.. since ignoring small things can get you killed in combat.
The attitude you bring to the table regarding how you handle details shows up in ALL we do. And good software is definitely about managing details well.
I couldn't disagree with you more.
|
|
|
|
|
Use a tool for codeformatting, make sure to run it before you commit your code, or make your editor format your code.
Codeformatting "by hand" is waste and should be eliminated.
|
|
|
|
|
I do that to other people's code.
|
|
|
|
|
When you do that:
- It seems in the source control that you modified the source code
- It looks insulting for the other developer (the one who originally wrote the code)
If you can't agree in a friendly conversation on one style of code, then you have more important problems to tackle in the team.
Make it simple, as simple as possible, but not simpler.
|
|
|
|
|
Adam Tibi wrote: It seems in the source control that you modified the source code
Indeed.
Adam Tibi wrote: It looks insulting for the other developer (the one who originally wrote the code)
Then they should have done it right the first time.
Seriously, if you're insulted because I tell you to format the code according to our agreed upon standards, then you're working in the wrong place.
|
|
|
|
|
What Karel said. Coding is, well, a love affair, and I expect code to be treated respectfully, and in part that means it should be visually pleasing, from 10 feet away, to look at.
Jeremy Falcon wrote: the coders that write messy code tend to also have messy cars and homes. It's gross.
Have you visited them???
But even more of an issue for me is, coders that write messy code also write bad code, at least in my experience.
Marc
|
|
|
|
|
Marc Clifton wrote: Have you visited them??? Some I've hung out with over the years and some I just listened to them talk about their habits. It's amazing what you can learn if you really listen to the stuff people say.
Marc Clifton wrote: But even more of an issue for me is, coders that write messy code also write bad code, at least in my experience. Agreed. It's just a lazy mentality. And if they're that lazy about formatting, chances are they're that lazy about learning and education.
Jeremy Falcon
|
|
|
|
|
Jeremy Falcon wrote: It's amazing what you can learn if you really listen to the stuff people say.
Aye, and listening is a skill I find very few people have. This guy[^] has some short TedTalks on the subject I found quite good, if you're interested.
Marc
|
|
|
|
|
I will check that out. Thanks.
Jeremy Falcon
|
|
|
|
|
Code that only a mother could love?
New version: WinHeist Version 2.1.0
My goal in life is to have a psychiatric disorder named after me.
I'm currently unsupervised, I know it freaks me out too but the possibilities are endless.
|
|
|
|
|
+5
Jeremy Falcon
|
|
|
|
|
How is it even possible to have badly formatted code in this day and age? You can just press ctrl+shift+alt+windows+1+F and have it automatically formatted.
|
|
|
|
|
Formatting is just one piece of the puzzle.
Jeremy Falcon
|
|
|
|
|
People can also make their bed, take out the trash, and do the dishes...but they don't.
|
|
|
|
|
|
Jeremy Falcon wrote: Oddly enough, the coders that write messy code tend to also have messy cars and homes. It's gross.
I was going to point out the same fact, interestingly enough.
Edit: I am saying this is "fact" only because I have never seen otherwise. I am sure it really is not a fact.
|
|
|
|
|
We don't really have time for facts, we mostly go with assumptions instead.
|
|
|
|
|
I'll accept that as a fact.
Jeremy Falcon
|
|
|
|
|
You assume too much
|
|
|
|
|
It's so easy to format your code properly... Ctrl + K, Ctrl + D (in Visual Studio anyway). It doesn't delete white spaces, but it does quite a bit for you.
I'm amazed at how much badly formatted code I still see!
And in my experience if the code is poorly formatted it's poorly written.
Comments are as bad, or worse...
Person p = new Person(); NO, REALLY!? Arghhh! And I actually see those kinds of comments...
Another thing I can't stand is copy-paste programming. And much too often it's way too obvious.
The following is some production code I've had the 'pleasure' of working with (it was an obvious comment that was copy-pasted, but not edited with the code).
product.Save(); I looked at it and screamed in disgust "OH LORD, WHY DO YOU HATE ME SO!? "
My blog[ ^]
public class SanderRossel : Lazy<Person>
{
public void DoWork()
{
throw new NotSupportedException();
}
}
|
|
|
|
|
I always jokingly tease the developer who added the comment.
Make it simple, as simple as possible, but not simpler.
|
|
|
|
|
I'm with you on that code should be indented properly.
Couple of things I have to add the format of code.
Where people have excessive white space between code or methods and silly naming conventions that make code difficult to read
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|