|
I would much rather work with someone who writes perhaps slightly messy code - who is willing to learn, open and friendly than a coding savant who 'wins every discussion' and is a complete PITA to work with.
I think your 'whinge' is justified
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
_Maxxx_ wrote: but takes the attitude that his ideas are always right
You just described ninety percent of the population
Politicians are always realistically manoeuvering for the next election. They are obsolete as fundamental problem-solvers.
Buckminster Fuller
|
|
|
|
|
Not in my general experience - I take the philosophy that there is always something new to learn
MVVM # - I did it My Way
___________________________________________
Man, you're a god. - walterhevedeich 26/05/2011
.\\axxx
(That's an 'M')
|
|
|
|
|
It's a very good philosophy.
But my experience is that many people are locked in their ways. You know the "Not invented here" thinking.
|
|
|
|
|
Over commenting can make code very difficult to read, but no comments can be very dangerous. I don't do too much commenting myself, but I've been coding long enough to know where comments will be really helpful.
My plan is to live forever ... so far so good
|
|
|
|
|
That's actually what I tell a coworker.
Comments need to clarify, not clutter.
Now I rarely see useful comments.
Stuff like:
// Assign the variable.
int i = 1;
Really? If that's the kind of comments you are going to write then don't write them at all!
And copy/pasting is the root of all programming evil.
You may only copy/paste code if you know what that particular piece of code does.
Unfortunately I've seen code copy/pasted by people who didn't know what they were copy/pasting.
Errors were the result and of course the original copy/paster had no idea why or how he did it...
You may argue I am not against copy/pasting, but I am for understanding your own code.
Unfortunately those two are often mutually exclusive in my experience
It's an OO world.
public class Sander : Lazy<Person>{
public void DoWork(){ throw new NotImplementedException(); }
}
|
|
|
|
|
You should almost never copy/paste. Cut/paste, sure, and call that new method in two places.
|
|
|
|
|
My only, but frequent, copy and paste is the property declarations on a domain object into a view model object.
|
|
|
|
|
I do that more often than I'd like too!
But I also copy code frequently while refactoring.
I might take part of a method and copy/paste it to a new method.
or I might take some code that does something similar but not quite the same as what I want to do, and copy that.
I copy XAML a billion times a week
MVVM # - I did it My Way
___________________________________________
Man, you're a god. - walterhevedeich 26/05/2011
.\\axxx
(That's an 'M')
|
|
|
|
|
In my experience every moron out there that tells me I shouldn't use "XYZ" programming practice, whether it is copy/paste, multiple inheritence, or Windows, it is because they were too stupid and inept to use the practice properly.
If you can't handle the tools put them down, get out of the way, and let the grown-ups get on with the job.
Software Zen: delete this;
|
|
|
|
|
In this case it's actually the opposite - the guy is a great and fast technical coder - and expects everyone to be able to read his mind and see what he was thinking when he wrote stuff (because, of course, it's obvious to him)
He can whiz round VS and knows about every short cut key known to man, and can touch type - so he just types code real quick. So his thought process I think is why use copy paste and make some changes, when you can type it with the change in quickly.
MVVM # - I did it My Way
___________________________________________
Man, you're a god. - walterhevedeich 26/05/2011
.\\axxx
(That's an 'M')
|
|
|
|
|
I wouldn't care if he was the love child of Bjarne Stroustrup and Linus Torvalds, his commenting policy still makes him an idiot who I wouldn't have on my team.
Software Zen: delete this;
|
|
|
|
|
I'd vote you a plus 10 for that if I could.
If I had the power I'd certainly force him to change his ways, but I moved out of that sort of role & am now but a lowly programmer.
am, though, slowly moving the team toward actually producing maintainable code.
slowly!
MVVM # - I did it My Way
___________________________________________
Man, you're a god. - walterhevedeich 26/05/2011
.\\axxx
(That's an 'M')
|
|
|
|
|
My attitude is based on over 30 years of programming experience, sometimes where I've been involved in some really awful stuff.
I think your best recourse is to lead by example, which it sounds like you're doing.
Good luck.
Software Zen: delete this;
|
|
|
|
|
I'd rather have well commented and copy/pasted that way at least you'd know their intent.
|
|
|
|
|
_Maxxx_ wrote: Code should contain no comments Makes perfect sense to me.
I'd only add that a well written piece of code should also contain at least 3 strategically placed goto statements and a global variable named _a . This increases job security.
/ravi
|
|
|
|
|
It's 6:07 (morning) and I'm looking forward a day with my children in the snow (no school here if snow over 2 cm)!
The lone oak[^]
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is (V).
|
|
|
|
|
Nice shot, I don't miss that white stuff at all!
|
|
|
|
|
Kornfeld Eliyahu Peter wrote: no school here if snow over 2 cm
Why such a low figure?
20cm maybe, 200cm fair play
|
|
|
|
|
I thought Scotland got most of its precipitation in liquid form.
Politicians are always realistically manoeuvering for the next election. They are obsolete as fundamental problem-solvers.
Buckminster Fuller
|
|
|
|
|
They used to, but they deep-fried it.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Because when you have 10 cm every 3 years (and no 20 or 200 at all) it's shame not to give the children to play with...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is (V).
|
|
|
|
|
|
2 m to 4 m still no excuse for not going to School here
if(this.signature != "")
{
MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
}
else
{
MessageBox.Show("404-Signature not found");
}
|
|
|
|
|
Kornfeld Eliyahu Peter wrote: no school here if snow over 2 cm
Wimps!
Will Rogers never met me.
|
|
|
|