- 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
Will you have barbecue afterwards?
Because we really want OMGWTFBBQ!
Admin
What a shame it requires Windows... after being a professional programmer for 25 years, I still don't own a Windows machine (and I've written hundreds of thousands of lines of C++ too...)
I don't exactly understand why you did this, either. Seems like there's absolutely no need for it as the code is pure C++. Care to explain?
Admin
The winner should be dubbed OMGWTFLOL, the latter piece standing for "Language Obliteration Laureate".
Admin
I love the idea :)
Also i only dabbled in C/C++ under linux, and did most of my gtk design in glade, so i'll be perfect for a high score ;)
Now off to find some windows vmware image.
Admin
The explanation is pretty simple: you can use linux too. RTFA.
Admin
Let me get this straight: one of the prizes is a Mac, but if you actually write code on Mac OS X then you can't enter the contest? Talk about a daily WTF!
Admin
If the promised GTK+ 2.0 skeleton solution shows up, any Mac users should be able to use that...
Admin
This is gonna be a cheap idea, but...
You've posted the test cases, all of them. What's to prevent me from simply hardcoding the answers to those, and calling that my WTF and submitting?
Admin
Maybe I'm just blind, but I don't see anything about a deadline. When is the submission deadline for this contest?
Admin
Um, isn't the mac now an extension of linux?
Captcha: muhahaha
Yes I know that I am a moron
Admin
Nevermind, I am blind. The deadling is May 14.
Admin
Come on, let me do it in C#. Pretty please?
Admin
That'd be perfectly legit. Form the contest site: "If it passes all of these, then congratulations, you’ve built a fully-functioning calculator so far as we’re concerned."
Admin
Maybe you should RTFA before you start up your bitch and moan routine.
Admin
Test cases.
What is up with the test cases? Is it still considered a valid entry if all those cases are hard coded into the application?
Please answer this! It is very important to how I will pick my design.
Admin
There's nothing stopping you from that. You could even hardcode the thing for the exact order of key presses required to pass the test cases. This is for fun, we don't care if your calculator barely works as long as it passes the guidelines we've posted.
Admin
It seems we may have some really astounding submissions in the queue...
Admin
The whole UI thing scares me away. I don't have Visual Studio and getting the skeleton to work in MINGW or coLinux is probably going to be too much of a bother. Besides, I'm coding some slightly iffy code to keep me amused already. So while I will probably not participate in this context, nonetheless I would like to take this opportunity to give you guys some more rope:
You can write a nice object oriented expression evaluator (leeking memory all the way), overload the + operator for char*, or you can write a compiler (lots of byte codes and black magic). Oh, and throw proper Unicode support in there - there's no end of fun to be had with that. "We wanted to make the engine as generic as possible, to optimally prepare ourselves for future requirements."Admin
Design??? Well you've already lost!
Admin
Can our entry use a database, like mysql for example?
Admin
"Nor is it like the International Obfuscated C Coding Contest; in fact, writing code like that would be a surefire way to lose this contest."
Are you sure? I remember a Factorial solution a few years back that was pretty WTF. It created a source file that solved factorial for n-1, compiled it, exec'ed it, and multiplied the result by n to get the final result.
Wouldn't it be cool to implement addition by creating a whole bunch of files, and then a whole bunch more, and then counting them? Ooh, I'm giving away my best ideas!
Admin
Ooh, that's a good one! And XML! Everything will be better if it uses XML extensively.
Admin
reminds me of one of my favorite webcomics of all time:
http://xkcd.com/c221.html
Admin
Hey Alex, I see you finally got around to it :).
Joel
Admin
Much more amusing then hard coding, would be to open an internet connection, connect to the web page containing the desired results, and then look up the answer by screen-scraping.
Extra credit to anyone who displays their answers using a flame effect. ;)
Admin
No. Mac OS X shares some bits with the various BSDs, but the only thing in common with Linux is certain GNU tools in userspace. More to the point. Macs don't come with GTK and it's not easy getting it running.
Admin
WTF is C/C++?
C or C++, pick one or the other.
Admin
If you have a Mac, why would you want another one? =p
Admin
Admin
Nah, screen scrape the total directory size from 'dir'!
Admin
Web services!
By the way, here is my submission, I'm done. I worked real hard.
package test;
public class paulaBean {
private String paula = "Brillant";
public String getPaula() { return paula; } }
Admin
So, apparently this site's mission now is to come up with incredibly lame new meanings for established acronyms?
WTF.
Admin
What's worse than failure?
Admin
A GUI is required? Fuck, fuck, fuck. Who the fuck needs a GUI? And then fucking C/C++? I think I'll pass.
Admin
What happened did you run out of tampons today?
You must be a pretty crappy coder if you can't afford a $300 windows box. And you must be extremely retarded if you can't figure out how to dual boot.
Admin
Are you limited to one submission or can you submit several?
Admin
Will my new laptop come with award winning calculator software pre-installed?
Admin
Sec. 380. Use of Olympic symbols, emblems, trademarks and names
Cheers.
Admin
Oh that's good. It should come installed and you should be contractually obligated to keep it installed for one year on the laptop if you win, and it should be the standard replacement for the calculator that comes with the OS.
Admin
So wait a minute. Joel Spolsky from JoelOnSoftware is a judge?
Well, I guess if anyone in the world knew how to write WTF code, it would be him...
I just read his site to see if he still writes WTF stuff.
Yep, still writes WTF stuff.
Hey Joel, there's a bigass "FIND" button right on the toolbar. Click it, enter what you want, hit enter. DONE. 2,450 emails in my inbox right now, searched in under 10 seconds. Outlook 2003, SP2.
eesh.
Admin
I think to sum up a lot of the questions others are asking: does it have to be self-contained? My guess is that entries probably cannot depend on opening HTTP or database connections but it doesn't hurt to make sure.
Anyway, using web services or screen-scraping would certainly be "WTF-ey", but short of building your own TCP/IP stack for it, it's really not very clever and there are certainly better and faster ways to litter the code with bugs and hacks.
Admin
How about a program that crashes the OS and the number of times you have to reboot the system is the correct answer?
Yes, I am the evil twin.
Admin
Admin
Admin
I have submitted my submission, entitled "Fast and Deadly". It was originally going to be a copy of the Win32 example source code, but when I clicked that link I got a 404, so I submitted the 404 page with a .zip extension instead.
I got submission number 10001 (I think that's the right number of 0s anyway) so I'm pretty sure I was first. And I've read stories here about various enterprises which have done worse. So. :)
... why yes, I did read the rules. I'm even fairly sure as to which of them apply to make my submission invalid. :)
Admin
I'm not going to make an entry, but if I did, it would require the following things:
A physical four-function calculator.
A webcam.
A robotic arm.
OCR and robotic arm-control software.
The rest is left as an exercise for the reader.
Admin
Everybody knows that all the best WTFs are in Java or VB. Why on earth was a language specified?
I'm happy to pollute my mind with my deliberate WTF code, but I'm not going back to the monstrosity that is C++.
Admin
Hmm, some snarky people out there. Sorry, I was misled by the Win32 framework described towards the top.
Regarding dual boot, since I don't have any Intel-like machines at home, I think that'd be a little tricky. (My work machine IS Linux but I'm not going to futz with that for this contest...)
Onward and upward!
Admin
The obvious solution is to embed an interpreter of your choice.
Start your submission with #include <Python.h>. The rest is left as an exercise.
Admin
I have half a mind to embed Perl.
And then write beautiful, clear, fully documented Perl code to actually perform the function of the application.
But the Perl innards will win the contest.