- 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
#define SECONDS_TO_MILLISECONDS (000) #define MILLISECONDS_TO_SECONDS (1 / 000)
Admin
Admin
I must admit, i didn't spot the issue at first...
Admin
I timesed by zero once. Nothing happened.
I then divided by zero. Black hole.
Bugger.
The real WTF is that people put up with a crappy coder who also doesn't have good interpersonal skills, and can't take criticism. If it were only the first, it might be OK (send them to testing). If it were only the last two, it might be OK (don't interact with them?).
But altogether, I don't know why you'd not fire Mark.
Admin
Write a test case that will cause this code to fail until it performs as intended.
Admin
Add another zero, maybe?
Admin
Admin
Well, he needs to learn how to use types!
TRWTF is leading underscores.
Admin
Admin
I am TRWTF! Stupid parentheses.
FTFM
Admin
TRWTF is that the product can't install in 60ms :-)
Admin
Uh....ooops * 000 :-(
Admin
It will be fun to see how many were/will be fooled by such code and even comment before realizing it. Two, so far.
Admin
How the hell is this guy not also seeing the problem? Speed of the machine is clearly irrelevant.
Admin
Admin
I wonder how many actually missed that the variable
timeOut
also contributes to the timeout.Admin
Admin
Admin
You see how well binary works without any zeros. Those zeros are contributing a lot!
Admin
Oh! I see the problem: The constant is in octal.
;->
Admin
TRWTF is Jonathan's timidity (and the entire team's, really) in the face of a blowhard who uses bluster and intimidation instead of logic and skill.
Admin
TRWTF is a "start to finish" timeout instead of a saner approach of setting watchdog timers for individual blocks of code that check to see that forward progress has been made and they complete within some reasonable amount of time.
Admin
I am in favor of promoting Mark out of development team so he can no longer do any harm to code-base.
Admin
Admin
Well, I'd personally ask him very quietly what is wrong with the code. And if he starts shouting, I'd use every single opportunity to tell everyone very quietly that I'm still waiting for an apology for shouting at me when I pointed out the most stupid bug ever in his code.
Admin
He's a straight shooter with upper management written all over him
Admin
Admin
Admin
He claims that it installs before timing out on his own system... did he really test the install? If you can prove that a dev doesn't test when he claimed he did... well... you know...
Admin
Admin
I'm trying to multiply, but nothin' happens!
Admin
Yer He should have been using decimal zeros.
Or for more accuracy
0.0000000000000
Admin
I think multiplication is broken.
Admin
assert(2 * 3, 2 + 2 + 2);
Or, to check the original problem:
assert(60 * 000, );
Admin
It's certainly longer, yes, but larger?
Admin
What ever happened to providing user feedback via text that says what the installer is doing. if it is on the same step for an hour, something went wrong.
Admin
The only solution here is to override "*" and write your own multiply function that doesn't have that problem.
Admin
Admin
Admin
Users were complaining about it, so the text was removed so they don't know if something went wrong or the installer is just doing a lot of things.
Admin
Problem is: Mark's the President's daughter and can never be fired.
Admin
You need to procure a thing called a "female" first (cue the typical "/. -ers live in their parents' basement" jokes)
Admin
captcha: transverbero
Admin
And that's another WTF for the article, if you are doing installers you don't use your own system for testing!
You should have a secondary 'clean' system that you can revert back to the 'clean' state after running an installation test.
This avoids leaking your dev setup into the installer (for example, having files on your dev system that are needed by the application that never made into the installer, so application installation is only successful on [i]your[i] machine.)
As well as having to 'adjust' back-and-forth again your dev machine so that you can do an installation test and then 'adjust' your machine back to being a dev machine again.
Admin
Admin
Why do we developers always have issues with dating and timing?
Admin
Mark probably sees zero problem with his code.
Sincerely,
Gene Wirchenko
Admin
Admin
Cannot reproduce. Closing.
Admin
TRWTF is compilers accepting numbers with leading zeroes. Anything like 01, 006, 000 should throw an error.