- 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
bool isDaveStillAVirgin = true;
Admin
And forwarded to any potential employer who calls for a reference.
Admin
Admin
I'm not sure if people outside the U.S. know about animal crackers here. Although they are called "crackers", they are actually sweet, like a butter cookie/biscuit. Despite Shirley Temple's song, animal crackers would not taste very good in soup.
Admin
QFT. That is going to persist for the lifetime of his program for sure.
Admin
Admin
With Kendrick?
Admin
TRRWTF is that there seem to be no comments from our lady friends here yet.
Admin
TRWTF is "F*CK KENDRICK" over and over again in a file nobody else is ever supposed to see. You'd think in the privacy of his own little world he'd the gooyams to spell it out without the asterisk.
Admin
I suspect he was commenting on the contents of the file, not the likelihood of accidentally checking something in to source control.
Admin
Yes that is a good book. No wtf here though.
Admin
If it'd said "circus animals" instead, then it'd be a different story. Circus animals are not only cookies, but they are frosted with sprinkles.
Admin
Just add a wouldIDoHerFromBehind variable.
Admin
What are Lorna Doones? Are they any good? He should get animal crackers and channel his rage into biting their heads off. It seems like a better use of company time.
Admin
I guess I'd really like to see Darcy's legs.
Admin
They're shortbread cookies. Yes, they're good.
Admin
Good point. Whenever I say "animal crackers" I usually am referring to Circus Animals, which come in the box that looks like a circus wagon. Mea culpa!
Admin
TRWTF here is that he's got utility functions that he can never use since they're not in the repository (and if they're in some other file in the repo, why have a copy of them in his own private file?)
Admin
Admin
Snowball?
Admin
Admin
Exceptions should be used only for exception cases. This would clearly be a normal case.
Admin
Well at the time Dave asked, he didn't know that he needed to delete a file. He thought he had to delete a "revision."
Lern2Read
Admin
Admin
No doubt the reason he spent so long deciding whether or not to buy animal crackers is the writing on the box:
"Hmmm. 'Do not consume if seal is broken.' I'm going to have to go through the whole box to find the seal..."
Admin
Skipping the root is a common optimization if you're just using the result as a sort key.
Admin
"Everybody knows that legs should be long!"
Umm, not on "little people". Long legs on "little people" would look...wierd?
Admin
Hmmmm, what about a Lorna Doone covered Hashini?
Admin
TRWTF is passing Girl by value instead of by const reference…
Admin
I could totally make an Access db that does all this. Rate their T&A, other attributes (voice, attitude, etc.), and throw it all into an procedure that returns a 1-10 value. Then I'd fill the table with my opinions of my coworkers.
I feel myself getting creepier already!
Admin
Admin
Admin
Sure, lots of your coworkers put improper stuff in the source control system, but why would you keep your todo list in a cpp file in the first place?
Admin
Almost. AllGirls[0].legs is set 4 times, not three.
Admin
Admin
A few things no one's seemed to have commented on:
NthPower is a case of reinventing the wheel, poorly. It's an inferior version of C/C++'s pow.
The scoring algorithm should be its own function rather than being implemented twice in CompGirl. Hell, it should really be a method of Girl, but Dave seems intent on writing C in C++. He's taking advantage of a few syntactic conveniences of C++ while completely ignoring OOP.
Even if you ignore the social implications and creep factor of ratings girls like that and wanting to blackmail Kendrick, Dave still seems to be a shitty programmer.
Admin
I wasn't aware of that. It makes sense for integers. I wouldn't try it for floating point numbers where values -1.0 to 1.0 were expected.
Admin
Admin
So, no one commenting on how he's obviously keeping this file in the same place he keeps all his work stuff? I mean I can understand the accidental committal (shit happens), but it never would have happened if he kept his personal code separate from his work code...
Admin
long tooth; double chin;
Admin
Cheese, dozen't anniwon no how two speak english these daze?
FTFY
Admin
ONLY WRITE THIS FCKING COMMENT WHEN NOBODY ELSE IS IN THE OFFICE ONLY WRITE THIS FCKING COMMENT WHEN NOBODY ELSE IS IN THE OFFICE
captcha: eros - how curiously unfitting for this WTF ;o)
Admin
Admin
Admin
But really, this algorithm needs a lot more data.
My point being, the female cannot be reduced to a simple formula... God knows how much we've tried...Admin
Clearly, he was just worried that his updated rating of Darcy's legs wouldn't pass code review and he wanted to revert it with no trace.
Admin
Admin
I object to the girl data being hardcoded. What happens if a new girl is hired, an old girl leaves, or one suffers a disfiguring accident? You'd have to recompile!
Girl data should be stored in a database--or if we're being enterprisey today, in an XML file.
Admin
I don't think you understand what a const reference does...
Of course, if you get something as a const reference, you can't modify it without being a tool and casting it back to a normal reference (IE: 'girl1.face = 1' would fail at compile time if girl1 was a const reference). Besides, he's not attempting to modify any values in the Girl, just access them. Perfect example of a proper location to use a const reference.
Admin
Unless you know of a better way. It seems #subversion doesn't. Do tell.
Ahem, const...