- 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
frist || no frist
Admin
I think the only solution is to wire pepper spray to certain people's keyboards and have it activate when Ctrl + C is pressed.
Admin
This illustrates two of the fundamental axioms of development:
Given a piece of code, there must necessarily exist a more obfuscated and less readable way to write the same functionality
When encountering an if-ten statement that you don't necessarily understand, it is your duty as a programmer to add more &&s and ||s until it meets the needs of your particular bug fix (f*** testing the other, existing requirements)
Admin
I don't even see &, | or () anymore. All I see is brunette, redhead...
Admin
I loved the "*".equalsIgnoreCase(sub.getReplaceOn())
It would be very bad have an uppercase asterisk slip unmatched against whatever that is.
Admin
+1 Best idea ever.
Admin
+1 :D
Admin
They would simply learn to copy/paste using context menus. You know, assuming the didn't go blind from the first couple sprays.
Admin
The purpose? Job security.
Admin
This is madness!
Admin
TRWTF is using spaces instead of tabs.
Admin
++1
Admin
a big differently?
Alex, hand over your English mastery card, I need to take a corner off it.
Admin
Purpose: nepotism?
Admin
Of course, I meant "using tabs instead of spaces". :P
Admin
It's not really a mastery of English problem. It's a reading-what-i-just-wrote problem. Spell check doesn't catch errors if the errors are legitimate words.
I no I always check every thing that I wrote online to made sure that it is well wrote.
To all who would post a thing online:
Just take the time to read a post as though you were reading it for the first time. It's hard to find the extra minute or so, but it sure saves WTF readers a LOT of crying and wet pants.
CAPTCHA: capio -- to seize (it's not fun when it's actual Latin)
Admin
I hope you're kidding. I no there is no way you took the time when posting a thing.
Admin
Admin
"Perhaps you can figure out what those purposes are after reading this simple, single line of code."
To cause an aneurysm and to ensure job security?
Admin
Damn you, now 1==2 and math's all screwed up. Someone call Russell and Whitehead in, we need to reboot.
Admin
THIS IS TDWTF!!! /kicks TheSHEEEP into a bottomless pit
Admin
I don't get it. Why would you want to mace someone for cancelling a job?
Admin
The real WTF... The code will cause a NullPointerException...
is FOLLOWED by tests as to whether it exists.The clearer? form:
Admin
Suggestions, then.
Training: "See how many things you can find wrong with this code."
Or: "The MD is a stand-up comedian in his other life and he needs some material."
Or: "We need to hide the fact from the big bad headhunters that we have talent here, so we give them examples of stuff like this that will make them pass over us like a predator mistaking potential food for non-nutritious dead vegetation."
Admin
Oh, that ctl-c...I'd wondered why y'all were wanting to spray them for force-killing a foreground job...
Admin
To be fair, I once worked with a chap who solely used the Edit->Copy/Edit->Replace mouse-only method of C&P. It was kind of surreal watching him work, because he used it pretty much exclusively. You'd end up with one of those cobbled together applications that happens to send welcome emails (per the original requirement), and also do pretty much anything else you'd ever want it to in the other few thousand lines.
Admin
Sorry- my last post was in response to this. I suck at forums.
Admin
It serves as a warning to others.
Admin
[quote user="wtf"] ++1[/quote]
Damn you, now 1==2 and math's all screwed up. Someone call Russell and Whitehead in, we need to reboot.[/quote]
You're an idiot.
If anything, that's going to increment the value at memory location 1... not the value of one.
int* i = 1; ++*i;
Admin
Admin
C-C-C-C-Combo BREAKER
Admin
Wow, someone got up on the stupid side of the bed this morning.
Admin
Admin
Clearly, your sense of linguistic sarcasm never developed.
Admin
WTF (Why TF not so much as What TF) would anyone apply full text justification to code?
Admin
So, TRWTF is using tabs instead of spaces as well as both using "spaces" instead of "tabs" and "tabs" instead of "spaces"? This is becoming paradoxical...
Admin
fixed?
Admin
For readability:
Forgive my ignorance, but does the !"".equals() actually do anything useful?
Admin
No, this is SPARTAAAAAAAAAAAAA!
Admin
I love this board. So much understanding of humour, irony, and any small mistakes are completely overlooked. No one here would ever try to argue with each other to prove they are more correct that everyone else.
It is truly the oasis in the middle of an Aspergers desert.
Admin
TRWTF is using spaces (http://www.retas.de/thomas/computer/programs/useless/misc/game_of_life/index.html).
Admin
Admin
So... requirements are:
It's pretty clear that they messed up the code, and after a quick look it is equally clear that they messed up the requirements.
I do however appreciate the use of 'equalsIgnoreCase' just in case the 'toLowerCase' fails.
Admin
Admin
Thank you for these rules. I have printed them out and taped them to my cube. I promise to follow them until I die or until one of my coworkers wires pepper spray to my keyboard.
Admin
Admin
Admin
What of Shift+Delete / Control+Insert / Shift+Insert? Flying puppies that shit green M&M's fly from the wall to deliver gifts of canned walrus meat?
Admin
Want that.
Admin
"*".equalsIgnoreCase(sub.getReplaceOn())
This right here is an argument in favour of short function names like strcmp/stricmp. It wouldn't look so ridiculous if the superfluous 'do this check case insensitively' added only a single character to the line, although it's still superfluous in run-time cost (probably not an issue here as it seems to be in response to UI action). But seriously dude, didn't your mother ever tell you about temporary variables?