- 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 again?
Admin
Technically but it doesn't count on a double article day like today. Only Frist Prime counts.
Admin
Now that the contest is over, I'll link to mine (not putting it inline, that would kill the syntax highlighting) https://gist.github.com/o11c/5667876
I would've submitted except for the "have to download and run this product" thing.
Admin
First is so passé, says today's XKCD: http://xkcd.com/1258/
But apparently Frist still lives on in some WTF'y corners of the web.
Admin
I considered entering. I had a very cobbled together solution that was meant to seem like it had been developed by multiple people, each using their own personal favorite language regardless of appropriateness. Most importantly, it's "secure".
The idea was simple. First, a NSIS wizard asks a few questions, including username and password. It parses the answers into a float (dev likes floats because they're "more versatile than integers"), converts that float to a string (second dev prefers strings because they're "even more versatile"), appends a random 3-bit salt (which, of course, is written as a number 0-7), RSA encrypts that string using the password as a key, and prepends the md5 hash of the username. The result is saved to a plaintext file called "C:\secure\answer.txt"
Then, to actually get your answer, you have to open answer.txt up in a separate program, written in AutoIt 3. It'll ask for your username, and if the md5 of that username matches the first characters of the file, it'll try to decrypt the string using the password. Once the string is decrypted, it throws out the first character, separates the remaining string out to individual digits, which correspond to the answers you gave to the questions it asks, and makes one of two decisions based on those answers.
For the record, the decision is meant to actually correspond to the questions asked. In theory, it's supposed to give an answer that's actually right for the choices you made in the wizard (let's say it's for budgeting, and the question is whether you can afford something, it asks you a few questions about your finances and the short- and long-term costs of the product, and comes up with either "buy" or "don't buy"). However, the result is completely random because of a bug: we left the salt in (which we'd appended), and threw away the first character by mistake.
In the end, I didn't feel like coding this. NSIS and AutoIt 3 are both incredibly easy, but I was incredibly lazy. Ah, well, I certainly couldn't compete with the likes of some of these runners up, anyway.
Admin
Nothing I could write could compare to the code I see at work.
Admin
Pictures or it didn't happen.
Admin
FRIST BE THAT
Admin
The worst stuff is hidden away on a client system, for example, thousands of lines of awk that is living inside a series of giant bash scripts.
Admin
And all wrapped in PHP. Just Because.
Admin
...And it probably fails if two answers start with the same character.
Admin
TRWTF here is that you think we are interested in these boring articles of people trying to write stupid code. It's not funny if you try to make shit programs, it's funny when you try not to, and still manage to fuck it up.
Admin
TRWTF is haters gonna hate.
Captcha - damnum to hell.
Admin
On a serious note, being bug-free was not a goal of this contest. A subtler bug is that different answers do not have the same probability of being chosen
Admin
Use /dev/random for an other WTF. Nothing like "inexplicable" hangs once in a while.
(Captcha: similis - alike. Fitting.)
Admin
Where are the dishonorable mentions?