- 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
The secret to looking important is refactoring. Obviously.
Admin
Obviously the problem is with the Code Review Process...Seeing such an artifact ONCE should have put an immediate stop to it. Having it pervade the codebase is TRWTF, and firmly at the leaders door!
Admin
Obvious obviously is obvious
Admin
Obviously he's using the word obviously so much so he won't be asked to explain himself.
Admin
Taran obviously had lots of check-ins and many lines of code, so boss was tricked into thinking the other team members were obviously lazy bums.
Admin
Obviously now Taran will refactor his resume!
Admin
Obviously: Taran got away doing this one time for a year, he could easily do this 40 times more, with full salary, and then retire!
I think his name really is Taddam!
Admin
Obviously I was expecting TL to get the boot as Taran obviously knew what he was doing
Admin
Obviously, the 12th of each month is "refactor day" for Taran.
Admin
Admin
Admin
It's obviously that Taran should have sprinkled some "regression" fixes into his "refactoring" work.
Admin
I rank the 'Obviously' people in the same group as those who keep saying 'clearly'.
Admin
This is what happens when people take refactoring and patterns a bit TOO seriously. Sure, patterns are great things, but not when you put them everywhere just because they're patterns and so MUST be better than everything else.
Admin
I'm just wondering what this "OP" guy thinks of T. L.'s work.
Admin
The code had obviously nothing to do with patterns.
Admin
for all my Romanian speaking folks out there ... don't you ever program like a Ţāran.
Admin
Sure it did, just the wrong kind. Taran refactored at least one thing from a standard function call to a Factory.
Admin
Admin
+1
Admin
The
bit is great. Still, the end comes a bit as a surprise. I expected T.L. to get the boot for questioning the wisdom of Tarans refactorings.Good to know that every once in a while justice prevails.
Admin
Romanian English Dictionary (MF) rookie;hick;peasant;ploughman;villager
Indeed. No need to program like a ploughman. Obviously.
Admin
A happy ending? I smell a rat.
And guys, it was obv... to be expected that a lot of jokes were going to be made about the word "obviously", but obv... cle... evidently, it has run thin now.
Admin
Admin
Admin
SCNR
Admin
Clearly, these people are obviously the same.
Admin
Maybe just explain to Taran what he was doing wrong in a code review and then let him adjust his ivory tower coding. He appears to be at least familiar with the code base and switching team members has its cost. If a developer is willing to learn it is usually cheaper to keep him than hiring a new person.
Admin
And today it seems appropriate that I tell the tale of the micro managing boss who changed
to
on my behalf, then called me at 2 in the morning when "my" code was blowing up.
Admin
Can anyone explain the utility of a HashMap that only holds one thing?
Admin
Admin
Call it something else, such as "Performance optimization"... (Sprinkle generously with technobabble if asked to specify what kind of optimisation.)
This method of deception should be reserved for the nincompoop managers, the ones that get in the way of development due to their cluelessness of the work they are supposedly managing. Good managers can often understand the need for refactoring if explained properly.
And the meh type of managers you deal with by simply rolling refactoring into the original time estimates for every time you touch the code. Since you should be doing it anyways. Just dont specify it as refactoring, unless for some god abandoned reason it is a measuring item for performance... In which case, you are completely screwed.
Admin
Maybe If I can find it when I get into the office I'll dig up the source to InlineReplacingTextWriter, the behemoth that a Taran-equivalent at my company used to replace a single call to String.Replace.
The core of the algorithm looked something like this.
Bonus: He wanted to make sure it worked everywhere, so added an OnBeginRequest event handler in global.asax that wrapped the response's output stream in this.
99.9% of all characters returned by our web server had to create a new StringBuilder on their way out.
Admin
People using obviously all the time are generally just performing the service of telling everyone around them that they are oblivious, but getting it wrong... Obliviously...
Admin
"the best there was, is, and ever will be"
Sorry, Taran, that would be Bret "the Hitman" Hart ...
Admin
Snoofle,
Your writing continues to improve (though the 'obvious' red herring was unnecessary). What happened? Did you actually take a class? Did someone else take your username? Did you stop following lame instructions from others to wildly embellish? Did you start taking supervisor's advice to stop wildly embellishing?
Admin
A long time ago, a coding rule was set up that said that in C# ShowDialog() was the wrong way of doing things and that in its place, ShowDialog(IWin32Window owner) was to be called.
Now instead of just issuing the coding rule as a directive for future use, a developer was tasked with replacing every single ShowDialog() call with a ShowDialog(IWin32Window owner).
This broke the code in a couple of places.
On some occassions because the developer never checked whether or not ShowDialog() had been overloaded and if that was the case, if ShowDialog(IWin32Window owner) had been overloaded as well.
And on other occasions because the developer just simply added what he thought might make a good owner window, in one case adding the form itself as its own owner.
"Coding Rules" are a nice thing to have, but enforcing them retrospectively might sometimes make things worse instead of better.
Admin
A developer willing to learn won't write code like that. It's much cheaper to fire the incompetent ones and hire competent ones than trying to educate them - also they should have done their training before holding a job.
Admin
Your boss seems to be like this guy: http://thedailywtf.com/Articles/SkillsEquals%28null%29.aspx
Admin
Why did the original clear the map one million times? The reason is not obvious to me
captcha: enim, therefore, but therefore what?
Admin
Admin
Looks like the developer needed a temporary variable, in this case a hash map, for whatever he had to accomplish during one iteration. With simple types there is no danger with creating them outside the loop; with hash maps things are different since you might iterate over the keys at one point or the other.
But creating a hash map is rather expensive. So you do it just once (outside the loop) and then just erase whatever's in it once you're done with it inside the loop.
Admin
How could snoofle have missed this obvious ending line?
Admin
Admin
These are not even remotely doing the same! On Java this obviously wouldn't even compile.
And all the OP complains about is the repeated instantiating of objects?
Not about breaking the build with a compile error?
Seems not only Taran is a WTF in this story.
Admin
Anyway, worse things have happened in the anonymising process. It would certainly be an assumption that I would've made, but the original might have had the "> 0".
You're right, though, it doesn't do the same thing; the first version would only assign somePermanentVar if the value was a positive number, but the latter will assign it if it's nonzero. Just wait until someExpensiveFunc returns a negative value and everything gets all cocked up because somePermanentVar isn't supposed to ever be negative...
Admin
Admin
Admin
Good, I'm not the only one who got that joke.
Admin