- 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
Uh, oh; I sense trouble already.
Admin
After reading:
and
I think I'm starting to see a Pattern…
The offshore programmer seems to have written code which reeks more of a Prototype than a maintainable codebase. I would make QA pay them a Visit or at least make the development boss change his Strategy. That way they will at least not be able to keep up the Facade that off-shore is better in the long run.
If you want to burn Bridges though: suggest that they go work in a Factory, the damn Singletons.
Admin
Ummm...no. You've already seen what they'll do with one hammer. Give some people a hammer and everything looks like a nail...and that's not a good thing. With this group, you give them a hammer and they start knocking holes in the walls.
Admin
FTFY
Admin
Oh well, at least the variant spacing indicates that the Copy-and-Paste antipattern wasn't used!
Admin
Admin
There was a code review. He did it himself. The company has a policy of a own-code review, as to develop a sense of responsibility within its employees, which in turn improves code quality (case in point).
Admin
FacePalm!
Admin
Admin
I'm not sure about that, looks pretty neat to me except for the vars. Lots of empty lines though,
Admin
:wtf:
Admin
A DRY pattern would have been better.
Admin
Well, ignoring the fact that implicit typing actually increases code readability, every line in these methods are inane. I'm not 100% sure what this code is trying to accomplish - since it seems to do the same thing for every piece of data it "processes" and it never even uses the results of the MLS query besides checking to see if LabelName is null or empty - but I am certain that whoever wrote this needs to have their programming license revoked.
Tell me if I'm wrong, but I do believe all of this be replaced by: https://gist.github.com/nelsonlaquet/18eb3ca0867762075de8
Admin
http://www.youtube.com/watch?v=Ymp3ZyHjC68
Admin
I don't know if that carries the right connotation. I mean the people in the article aren't crazy, just, well, prone to misuse any heavy-duty tool that comes to hand.
(Rethinks comparison.)
OTOH, maybe it does have the right connotation. :smiley:
Admin
Actually, if you wanted to get management's attention on how offshoring is actually costing them more money, this is a really GOOD way to do it.
Admin
Geez, don't you people know anything?
;)
Admin
Have you considered replacing the magic smoke with WD-40?
Admin
Preferably while it's still running.
<!-- Bonus points if it's in the middle of writing something to HDD -->