- 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
Admin
Developers! Developers! Developers! <clap clap clap> Developers! Developers! Developers! http://youtu.be/8To-6VIJZRE
Admin
We actually have this line in our source code:
Admin
D'oh!
I have no idea what this code should do (or should not do) ;-)
Admin
In Haskell this is a one-liner. We just use lens composition.
Admin
I get the intention of the code, but wouldn't it be much easier to simply return data?
Admin
Data data I don't love you you don't love me.....
Admin
What is it with programmers and their insistence on abbreviating things enormously? The great vowel shortage is over! Twitter and SMS messaging are producing vast numbers of spare vowels for virtually nothing; there's no excuse for us to not take up this opportunity!
Admin
Data data data data Batman!
Admin
You ain't got no DATA if the frist data is null!
Admin
Why did nobody point out that the real WTF is the second if condition, which can never be true?
Admin
Huh?
Each condition is possible.
Admin
Wenn Fliegen hinter Fliegen fliegen, fliegen Fliegen hinter Fliegen her.
Admin
data data data LORE
Admin
Admin
badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger
Admin
Admin
An excellent waste of chickhen... and data.
Admin
^ A wtf in itself
Captcha: genitus - brilliant genitals
Admin
Malkovich malkovich malkovich, malkovich malkovich. Malkovich malkovich. Malkovich!
Admin
That can be simplified actually:
Admin
Calling bullshit this was ever serious production code. Hell, even Javascript's Use Strict returns an error if you try to use data.data ferchrissakes.
Admin
Calling bullshit this was ever serious production code. Hell, even Javascript's Use Strict returns an error if you try to use data.data ferchrissakes.
Admin
Admin
Is this the University of Wisconsin version? (On driving to an office across the street from their campus, the directions were literally "right on Badger, right on Badger, right on Badger and you're there...")
Admin
HDFDGF
Admin
A somewhat minor example from the system I used to support.
That's an internal language as far as I remember.
Admin
Any excuse to post this...
[image]Admin
lol, thats just silly... perhaps then it should have been
String return; if(buffalo.buffalo.buffalo == Buffalo.buffalo.Buffalo) { return = buffalo.Buffalo.buffalo; } else { return = Buffalo.buffalo.Buffalo; } return return;
Admin
OK, so as we all know the original else if code can be written with the ternary operator as follows:
I came up with three ways of rewriting it. This one most closely resembles the original code: This one looks deceptively similar: The subtle change makes it the easiest one to extend to add an additional level and/or null-check data: This less readable alternative is the shortest I could come up with: It is also amenable to a null-check: CAPTCHA: a ratis eating my spaghetti codeAdmin
Spam spam spam spam spam spam baked beans spam spam spam
Admin
You know, I think the REAL WTF isn't this code.
It's whatever it's getting it's input from, which apparently can't be consistent with whether it spews out [Object].data or [Object].data.data
This snippet actually strikes me as the work of an overworked programmer who late in the game discovered that sometimes their data source nests its data another layer deeper in the object it returns.
My point is, don't blame the poor bastard dealing with [Object].data.data, blame whoever cursed him with such crazy-ass and apparently inconsistent outputs to work with.
Admin
Hastur? Hastur Hastur. Hastur Hastur, Ha$#%$A%+++NO CARRIER
Admin
Admin
... it's BACON!
CAPTCHA: luctus (came up in my text field prior entered list, hmmm... a CAPTCHA WTF?)
Admin
Fucking brilliant. (omg now i can't help humming it)
Santo subito ! / Feature this ! / whatever you use to declare something awesome...
Admin
Follow-up. I tested this just now and yes, the problem does still exist. The solution is to use the parentheses on each "sub" expression.
Since I always used parentheses in my ternary expressions anyway, I never realized that there were problems if you omit the parentheses. PHP makes me sad.
Admin
Malkovich, Malkovich! (reference)
Admin
This is called "code as data", you morons :)
Admin
ok, how do you like this one:
Admin
http://msdn.microsoft.com/en-us/library/3d6wt21y(VS.90).aspx Deployment in Visual Studio Property Property (Folders)
Admin
Basically lisp.
Admin
no need for var SrcData ? :)
Admin
I am Groot. I am Groot. I am Groot? I AM GROOT. I am GROOT! ...I am Groot.
Admin
Data? Tada!
Admin
Reading this made me sing the star wars theme song. Daataa data daataa data data
Admin
Many individuals who play onlin or live casino games get tjeir start with slots. It's no surprise that should function aas the case, aas sots are likelyy the easziest game much more about and realise.
People posses played roulette have always aspired too come i'll carry oon with a strategy thaat is correct perfectly. Unfortunately, no it makes me wonder really ask a strrategy this is a hunrred percent effective. If you play roultte online, you may bee able to find a software called roulette sniper. However, even it doesn't really guarantee you november 23 all the time. Alll it really does is record every spin and where the ball might failure. It will show you a pazttern of hhow yoou can win. An individual have to understand that roulette is a gamme of luck and there's no such thing aas a pattern of luck.
Caribbean Stud is a number of. In this game, everyone plays wirh casino or house, which acts forr a dealer. The house pays out all winning bets. November 23 a round of Caribbean Stud, a gamer must beat only the dealer's hand and the sqauad inn video game do not contend between each other.
An casino game of roulette can work just appearing a real life game undoubtedly.
This wil involve predicting when a ball will lasnd on the spinning tyre. When playing online you should see the wheel employed. It sholuld take advantage of the numbers 1 to 36 on itt with 0 and 00 spots.
A casino is an internet casio is a casino, but you're dealing with the INTERNET here. It's much easier for an sky777 new slot to anish with your bankroll from the joint across the street. This doesn't appear with regard too a concerning issue though, juist stick with the major players and you are fine. It doesn't hurt to do a little "Googling" when yoou never know what you discover.
When you log on and seloect the table of yyour choice, you possess the screen names of all the players participating with you on the family table. A large boxx at the left side surface off the screen can
Admin
chloroquinine https://chloroquineorigin.com/# hydro clore quinn
Admin
https://cialiswithdapoxetine.com/ generic cialis
Admin
https://cialiswithdapoxetine.com/ cialis without a doctor prescription