- 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
Beaten me to it. Just as well, really - I'd read yi-shi to mean ten (yi is one, er is two, san is three, er-shi is twenty, san-shi is thirty but shi by itself is ten, not yi-shi).
Admin
as someone posted much earlier, yi shi probably means TEMP.
Admin
I also though first, that yi shi would mean ten, but temp sounds more reasonable. The problem is that both are pronounced the same way (yi1shi2), but are written differently (?? vs ??). If this was Java code, it would be possible to use *any* Unicode characters in the variable names, which might create interesting WTFs. :)
Admin
I thought it was illegal to use Java in military or real-time applications..?
Admin
As a native Chinese speaker, I was puzzled by this for a while. The only common meaning of "yi shi" is ??, which means "meaning". ??, which means "temporary" or "immediately", is a pretty archaic term.
(ironically, the CAPTCHA for this post is "stfu")
Admin
Why are we always preparing? Just go!
Admin
Err, whyTF would you divide infinity by infinity and expect a meaningful value? And why would you want to preserve precision when adding finite values to infinity? Infinity plus any finite value is infinity, simple as that. Total loss of precision is not only possible, it's expected. If you use infinity as a substitute for "very large finite value", it does not make any more sense. If you divide one very large finite value by another very large finite value, the correct result could be about any positive value.
Well, if this is Java I guess the "yi_shi = 3;" line is to satisfy the anal javac which hilariously reports variables that aren't used after initialization as freaking errors rather than warnings.
DickBag McButtMunch would not like to see his name miscapitalized.
Admin
The horror! The horror! The HORROR! Can it be true?
The prominent cheekbones and jaw. The musculous calves. Please say it's not true, Miss Peta Wilson!
One moment... Peta Wilson... could that be "Peter, son of William"? Noooooooooooo! Must... fight... the... thought!
Miss Wilson, if you are reading this... you cannot possibly imagine how we all had hoped that you just might, well, uncross those legs, but now, I never thought I would say this, I beseech you, I beg you: Please, please, please, keep your thighs together! Don't spoil the illusion. Don't destroy all that we ever believed in. Thank you for your compassion!
Yours truly,
Alexis
Admin
Theres a "In Soviet Russia, Nikita is male" joke somewhere.
Admin
Umm.... I think the WTF is that people used to have to patch programs manually, instead of double clicking on something...
captcha = clueless
Admin
Well then thats a valid use, but you're using the wrong name.
You should have called your constant "HUGE_RESISTANCE" instead of "INFINITY" because obviously it isnt actually infinity (use IEEE floating point infinity if you really need true infinity... float inf = 0/0.0f)
Admin
This could feasibly be "correct". IsPostBack could be a function with side affects (since VB6 doesn't require () if there are no params)
It probably still points to some really lousy code though :-)
If we knew that they used hungarian variable notation then it would be obvious if it was a function or not
Admin
Yes, it is punishable by death.
Suffice to say, the programmer who wrote this code is no longer with us...
Admin
It's hardly a WTF, considering that there's a good chance the computer this program was for didn't even have a mouse. It's just amusing to think how far we've come since then.
Admin
You probably used a cassette to store and load the source as well, and it made a sound similar to a fax machine.
Admin
Maybe not a mouse, but I'll bet there was a hamster inside<font size="4">™</font>
Admin
Surely it's punishable by non death... of your enemies...
oh... no... hang on... the JVM's started now.... (Ooooh, there's an update...)
Right, now it's punishable by death, so long as it doesn't take longer than 3 days as I have to reboot to install this update.
CAPTCHA=null;
java.lang.NullPointerException
at com.thedailywtf.captcha (formsubmission.java:101)
...
Admin
Actually, 0.0f/0.0f gets you NaN (Not a Number).
1.f / 0.f is Infinity.
capthca = clueless, how fitting!
Admin
Even more interesting... my cousin-in-law is Russian, both he & his daughter are named Nikita. :) Great stuff!
Admin
#define ZERO -1
That's not funny.
browse the libmesa example codebase:
Admin
The WTF here is that castration is being applied to the frank instead of the beans...
Admin
It has been a great fun reading the discussion about my name, and believe me, as I'm living in Finland I face these discussions all the time. So, the prize goes to.... reinis and Solarcanine, for finding my (old and outdated) cs.helsinki.fi pages and finding our that Zhuk == ???. So the correct answer is that Nikita is indeed a male name in Russia and Eastern European countries.
Admin
Yes, He was killed during a live test: Got clobbered during Garbage Collection, waiting for the acquire_target prompt:>
--
jondr
Admin
Not to mention that Elton John doesn't write lyrics...Bernie Taupin does.
Admin
Actually, I've used code such as that while developing code. Sometimes I want to get the stored procedure fully written before actually incorporating it into the front end.
Write the code to handle each result set, and uncomment the code in the stored proc.
It's also useful for debugging purposes. Have it return something to verify that the asp code is actually hitting the right sql database.
Generally you don't want to leave that code in after completing it, except for debugging perhaps, but things get missed.
Admin
wow! you created your very own WTF there. the definition of a void function is that it returns nothing. so it shouldn't yield a compiler error because "it returns nothing despite it being a void"
the "IF 0 > 0" thing is probably some weird kind of commenting.. probably was something like "IF RunningProcesses > 0" and then got changed to never produce that error without removing the code so you can still easily re-enable it.
Admin
Admin
I agree. I just reivewed some code here that looked like:
I guess that's better than trying to block-comment, if you already have block-comment comments inilne with your code...
Bonus: CAPTCHA is "random". Heh.
Admin
Someone said that was an ugly woman. I don't know about that, but you're not a bad-looking man!
Admin
In some programming languges , Boolean's False is -1 and True is 0 , on other languages Boolean's False is 0 and True is 1.
A lot of API functions return -1 when error found , other return 0, most return a positive value if no errors occured.
It's a stupid way to write it though .. however, you should check the source code of various Linux application and see defines for various platforms ..
captcha : wtf
Admin
Well I've never heard of an Indian called Nikita in my life, nor the surname Zhuk, and I live there.
Anyway, it's a man: http://nikitazhuk.net/blog/
Admin
Bryan Ross really wanted to make sure that it was not a PostBack ...
If Not IsPostBack Then
If Not IsPostBack Then
LoadReport()
End If
End If
This is correct and can be used in microcontroller soft, for example, to double check of data bus with high electrical noise level.
Admin
"?????? ???" is a male name :-(
Admin
WTF, oh sorry, BTW, Nikita is a Russian man's name. Particularly with Russian surname.
Don't tell me about 'La femme Nikita' movie: it's an intrigue of enemies :))
Admin
yet afterall, would we assume that the told function castration($willy) { ... } was used over Nikita, then we would have no controversion there.
BTW, "Zhuk" stands for "beetle" in slav languages. That is not "bug" yet, but somewhere near :-)
Admin
The "prepare for return" made me laugh for 2 weeks .. the funniest comment in a code piece ever seen. Thank you so much for submitting this little piece of fun