- 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
Edit Admin
This isn't quite as bad as it looks at frist*. It's mostly just a single function that has too many parameters. Making it a macro might make it easier to read, since you could replace all of the repeated object properties (which is what makes the line so long) with a few variables. Changing the parameters to be a few objects and then using the properties inside the function would also help a lot.
Edit Admin
As sometimes happens, TRWTF is the way the article is written here.
Frist of all, the author should have broken the lines on commas, not at convenient dots. Doing that, and discarding all the repeated jibberjabber, we end up with this:
And that's much easier to follow.
Edit Admin
It is, nonetheless, as noted by @Dragnslcr, a function with an uncomfortably large number of parameters.
Aaaannnd, I was snecod...
Admin
"I do not know exactly what this is doing" Paid by the character, and time it takes to complete.
Edit Admin
Trying desperately to find a silver lining in this abomination, I will admit that the names are more meaningful than I expected.