- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Damn straight!!
Admin
Overload ==?? Really?
Admin
Since this is MS' best practices , he might be right.
Flame away!
Admin
class money?
new priceless (comment)
Admin
He might have pointed out the risk involved with introducing unexpected behavior.
Admin
This is why operator overloading is sacred animal feces. Operators (+,-,=,÷ etc.) are nothing but syntactical jujubes. All serious programming should use proper method calls only. Just like Java.
Admin
God, that could have been my old boss...
Admin
It is of course mandatory that any such divergences from the standards (in this case equals() not doing the same as ==) should be solidly documented in the API. IN this case, thought, I bet it isn't.
Wonder how the compareTo() shapes up? Does a.equals(b) return the same as a.compareTo(b) == 0? If not, then ... oh what the fuck, you can't argue with a prick.
Admin
Architect == "Prick"
if(Architect.Equals("Prick")) { Architect.IsSacked = true; }
Admin
??? where is the edit button??
Admin
Sounds like a guy that's read too much theory and hasn't spent enough time applying it.
I wouldn't argue with his opinion of "Standards and Practices" in general. I'd be darn worried about his apparent lack of ability to apply that thought, though
Admin
Challenge accepted. MS actually publishes a free book on architecture design, the "Microsoft Application Architecture Guide", which is available at http://msdn.microsoft.com/en-us/library/ff650706.aspx. It is not the best book around, but it's free, and it might convince some people that software architecture is more than just smashing code snippets together.
Admin
"Least common denominator domain" is my new favorite buzz-phrase!
Admin
If .NET weren't mentioned, I'd swear one of my coworkers submitted this.
Admin
TRWTF is the name Tennyson.
Admin
Parents can be so cruel...
Admin
Admin
Would you prefer to write code like this?
Admin
Let me add the :) for you so everyknow knows you're kidding. You're kidding, right?
Admin
Tennyson Tennyson Tennyson Pennyson Pennison Penison Penisson Penis son (Tenny's a pederast?) Penis sun (Tenny's a nudist?) Penis fun (Tenny's gay?) Penis->cunt (Tenny's a tranny?) Penis punt (Guess he was really tired of having one) Penis blunt (He rolled up pot in it and smoked it?) Tennis blunt (He plays while smoking?) Ferris blunt (I don't remember a pot smoking scene) Ferris Bueller (Oh right, it's my day off...) Dante Hicks (...and I'm not even supposed to be here today!)
Admin
... erm, actually yes I like this...
You'll have to excuse me a moment, the nurse just came in....
Admin
Let me add the :) for you so everyknow knows you're kidding. You're kidding, right?
Admin
Do I get a jujube for spotting the bug?
Admin
There should be a rule that when your title includes "Architect" you should no longer be laying hands on code (much like a building Architect never picks up a hammer).
Of course, the counter example is when a coder says "We should do <idiot idea>, because it's Best Practices" to a more senior person and then can't tell them who says so or explain why it is "Best Practice".
Admin
Admin
"Laying hands on the code"? What is he, a faith hacker?
Admin
etc. (I wasn't able to properly port your code, because your brackets didn't match up).
Admin
Tennyson should have fired back saying "inconsistent behavior of the == operator among value types creates an unnecessary risk".
I wonder if The Architect would have explained to him that some unnecessary risk is acceptable.
Admin
No magic numbers!
Amateur.
Admin
OK, now I have the urge to spend the rest of my day walking up to co-workers' desks, laying hands on their machines and shouting "Let your Spreadsheet.. be HEALED!".
Thanks.
OK, but seriously - everyone should stop, take a moment, and be totally jealous of a guy who has managed to get a coding job where management is completely unwilling to overrule him. Yes, this guy is an arse, but if you could code what you want, give any BS reason you wanted, and be assumed to be Absolutely Correct, wouldn't you powertrip a little too?
Admin
Witout unecesary risk, there is no return.
Admin
Admin
Admin
Interesting...
Admin
Admin
Now, excuse me while I fall off my chair laughing…
Admin
Admin
"Standards and Practices" are simply conglomerations of tribal knowledge
I love this (as in "I hate this kind of") answer. Because TRWTF is that he doesn't address the actual point of the argument.
That point is "... because Money objects are immutable and represent the same data, ...". But The Architect steps around this and does a successful straw man attack on "Standards and Practices" instead.
I've seen this so many times. Usually the straw man remains undetected and the discussion derails and ends in a totally pointless debate about the straw man instead.
Admin
Yep, sounds like the architect.
[image]Admin
Admin
Admin
I'm more of a writer than a hacker, so my response to this is simple: no, I wouldn't be jealous of this. Good writing thrives on opposition, I write best in collaboration with a good editor or an involved client. When I write code, I find it's the same thing, having an interested party review what I'm doing always helps. I think I'd write lousy text and lousy code if I didn't have someone to help call me out on my bullshit. And if you think you don't write bullshit sometimes, that probably means you write a lot of bullshit.
Admin
Feature this.
Admin
Admin
If he was alive today, Mr Pythagoras would be spinning in his grave.
Admin
It is submitted by one of your coworkers, but they changed it to .NET to anonymise the story.
Admin
Why does this story ( at least the beginning ) vaguely remind me of BobX? http://thedailywtf.com/Articles/We-Use-BobX.aspx
Admin
Admin
Admin
I don't know, but stupidity like that should count as a Chaotic Act and he should lose his Paladinhood... Or a 50 DKP MINUS depending on what type of Paladin...