- 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
It's not even insane.
Admin
Is there a bit missing around the sixth line of code, seems like it's making a function call to reasonCodeControl, when that's a variable?
In any case, looks to me like a nondeveloper just cut and pasted stuff, well, you'd hope so because whoever was mangling that if/for/if thing really doesn't seem to understand what their own code does.
Admin
Why modify 'Xrm.Page' to 'Xbp.Page'? It's Dynamics CRM code, nothing proprietary about that...
And this is a WTF in so many more ways than obvious there - manually modifying options, that relate to a server-side list, on the client, in a non-supported way...
Ouch. If Microsoft saw this, they'd flip - and any bugs or issues would be immediately classed as 'user caused, support contract invalid'.
Admin
There is no reason for this code.
Admin
That's what happens when you contract work out to Bizzaro World.
:-D
http://www.huntingtontheatre.org/PageFiles/23682/bizarro-world.jpg
Admin
I'm not even mad, that's amazing!
Admin
Did you cut the top off the article or is the first word actually "Then,"?
Do you specifically insert issues into your articles to drum up more comments? Is some kind of SEO thing?
Admin
I'm confused
Admin
The first word of the article is "Chris".
Admin
The second word of the article is "M".
Admin
The first word of this comment is 'The'.
Admin
The frist word of this comment is "frist" (0-indexed)
Admin
The option part is definitely a WTF but it's incredible when duhvelopers, that too often can't even spell their own names the same way twice, make these processing decisions based on specific wording, spacing, and capitalization.
Admin
That's literally the opposite of what I've experienced my entire career: If you pay your pound of flesh, Microsoft will assign support and sometimes development resources to your individual issue, no matter how dumb or self-inflicted. If you have an "interesting" problem, you'll probably get many times the price you paid in expertise solving your problem.
This is why you should always try to ask an interesting question, even if there might be a few dumb things blocking the ultimate problem on your end; they'll fix the easy stuff and then run it up the ladder for the real issues.
Admin
I've used a switch loop before. What was interesting was that the loop termination value was variable, so effectively I was writing a switch that early-exited depending on the input value. Since the language I was using didn't have early-exit and conditional statements were awkward anyway (for reasons I won't bore you with) a switch loop turned out to be the least annoying way of writing this.
Admin
Thanks for all the Unicorns.... And Rainbow !