- 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
wouldIDoHer should be an enum not a bool. Everyone knows there are three possible values:
Would Wouldn't Why not?
Admin
Admin
Admin
Why not? Try to come up with floating point numbers that break the sort order when the square root is skipped. I'll check back for your solution.
Admin
As I was saying, the shell commands are very easy, but one wrong move could trash your repository.
Admin
"TRWTF is passing by value" "No, that makes sense because [...]"
If you DON'T pass by const ref, you get a duplicate of the object, so you can "do what you need to."
Geez, it's like talking to 3rd graders.
Admin
Read the comments on it to see why.
Admin
This is a pretty elaborate advertisement for "Quiet War [by?] GollanczF Paul McAuley."
Admin
Your right, I'm wrong. Sorry. Didn't think that one through. I was thinking about how numbers less that |1.0| squared are smaller than the original number.
Admin
GOOD ONE!
Admin
Sadly, this just ruined my faith in daily WTF. I though you guys were posting real code and not making stuff up. It's funny but no way did that actually happen.
Admin
O(log(n)) vs O(n)
double NthPower(double m, unsigned n) { double prod = 1.0; while(n) { if(prod & 0x1) prod *= m; m *= m; n >>= 1; } return prod; }
Admin
Two things wrong with that:
0: Treating a woman as an object is liable to get you into a lot of trouble in the workspace, and should be avoided.
1: Expecting a woman to properly evaluate herself would be risky at best.
Admin
How can you resist making changes to that one and checking it back in?
Add another woman, maybe a useful function or two at the top?
My oh My!
Admin
Admin
FTFY, I for one prefer my boobs to be rounded, not cubes
Admin
90% of programmers are socially broken. A tiny fraction of those are COMPLETELY BATSHIT OFF THE WALL PANTS ON HEAD RETARDED. Once you've met a member of that group, this kind of thing becomes "Wednesday" instead of "far fetched"
Admin
I wonder if after work he turned all suave and had trouble sorting out which girls he was going to do?
Admin
Obviously, the computer is controlling Dave, and Dave.cpp is the rough draft for the master program to enslave the human race. Obviously, since the computer chose to start with Dave, it's going along very slowly.
Admin
I don't get it....
Double cum for a girl with short face, short legs and short body - this bloke clearly likes small girls.....
Admin
Admit it, this whole post was just a really subtle advertisement for tower defense games website, wasn't it?
Admin
And 57% of all statistics are made up on the spot. If 90% are socially broken, I must be the fucking MAN because I have friends AND a wife.
Admin
It does make a difference.
Consider 1,2,3 (sum = 6, sum of squares 14) vs 2,2,2 (sum = 6, sum of squares = 12).
Ex: Now you try it with some other values.
Admin
Admin
Remmeber?
Admin
Oh! I thought 'Animal Crackers' was a movie. did Shirley Temple's song refer to 'Duck Soup'?
Admin
Both of these are unneeded. This is Dave.cpp, so the attributes are weighted for him, as are the choice of attributes. He obviously isn't interested in fine grained control over "body", which isn't so unreasonable, given that the areas of interest aren't independent so he might as well combine them into a single value to avoid adding complications like covariance to the calculations.
Admin
It's a date. With Hashini.
Admin
Not to mention that it would lock you into whatever algorithm the woman feels like using, instead of using which ever algorithm the one actually using the application might want. Think of more than one user.
Admin
http://en.wikipedia.org/wiki/Animal_Crackers_in_My_Soup
Admin
Force of habit? For the syntax highlighting?
Admin
Most hilarious post since a long, long time
Admin
I'm sorry, Dave I can't do that for you.
Admin
Dear God, how I wish you were wrong. But alas, welcome to my Tuesday... /cry
Admin
That depends. Are they stored in your freezer?
Admin
Admin
You also forgot DRUNK_ENOUGH and NOT_DRUNK_ENOUGH
Admin
Admin
The scores for face, body and legs would be better off multiplied. The face could probably be weighted more.
or such.Admin
How arrogant to have a WouldIDoHer bool and leave out everyone else.
Personally I would have named the bool Doable, and allow others to set their own personal values for the supeficial weights, taking them all into account.
Taking that even further, I'd add a DidHer int with a rating of how she was.
Admin
Don't forget the macro: #define wouldSheDoMe ( ! wouldIDoHer )
Admin
Or a tri-state bool!
True = Would False = Wouldn't null or FileNotFound: Why not?
Admin
Neither would Shirley Temple. You'd have to exhume her body for starters...
Admin
Admin
Admin
Actually, she's still alive.
Admin
Admin
Your version doesn't compile. This one is correct:
double NthPower(double m, unsigned n) { if (n<=0) return 1.0; double tmp=NthPower(m,n>>1); if (n&1) return mtmptmp; return tmp*tmp; }
Admin
win
Admin
Error: in dave.cpp:17 Error: Expected identifier before
=
token double *** = 1.0; ----------------^