Comment On In A Rush, Properly Handled, and More

"This code was left by the Senior Software Consultant," Michael Wheeler writes, "I'm not sure if it's insurance against 'Return' not returning... or a comment that explained why the line of code was left in." [expand full text]
« PrevPage 1 | Page 2 | Page 3 | Page 4Next »

Re: In A Rush, Properly Handled, and More

2010-03-12 17:21 • by specialK (unregistered)
^^ ok that function should return a type of ListItem, not integer... :P

Re: In A Rush, Properly Handled, and More

2010-03-14 10:46 • by Zeo woods (unregistered)
Wow, that actually makes pretty good sense when you think about it dude.

Jess
www.big-brother-watching.net.tc

Re: In A Rush, Properly Handled, and More

2010-03-14 21:50 • by susan2012
you want to meet the s i n gl es, sex y beauties. ...It takes only a few minutes to submit a profile which, however, will bring you more fun!!!!! Believe me!!!!!!!
...____ S e e k I n t e r r a c i a l [DOT] c o m ___= free to join C'MON NOW!!!
____ S e e k I n t e r r a c i a l [DOT] c o m __

____ S e e k I n t e r r a c i a l [DOT] c o m ___= free to join C'MON NOW!!!
:) :) :) :) :) :) :) :) :) :) :) :) :)
:) :) :) :) :) :) :) :) :) :) :) :) :) :)
:) :) :) :) :) :) :) :) :) :) :) :) :) :)
:) :) :) :) :) :) :) :) :) :) :) :) :) :)
:) :) :) :) :) :) :) :) :) :) :) :) :) :)
:) ____ S e e k I n t e r r a c i a l [DOT] c o m ___= free to join C'MON NOW!!!

Re: In A Rush, Properly Handled, and More

2010-03-15 02:04 • by vt_mruhlin

"I was going through some obscure code from the developers before me, and something caught my eye," Philippe wrote. "It was a class whose task was to transform data, and this is how it was instantiated."

Transformer optimusPrime = new Transformer();


OMG, I might very well be Philippe's predecessor. I know somebody inherited that same WTF from me, but I'm sure I'm not the only clever person to come up with that one.

Re: In A Rush, Properly Handled, and More

2010-03-15 02:55 • by Vino (unregistered)
302205 in reply to 301777
Actually F gets significantly smaller as the rocket gets higher... it would be better to have a function to calculate it, which then calculates F depending on the rocket's position relative to Earth and other bodies.

Captcha: esse - a brand of Korean cigarettes, an hispanic gangster, or a village in Finland.

Re: In A Rush, Properly Handled, and More

2010-03-15 07:50 • by Steve H (unregistered)
302209 in reply to 301772
Simon:
I tried to put some italic tags around a bit of text today," writes Derek, "but somehow, it emboldened my text."


This was a deliberate feature to tell you to stop using <i> to italicise text. The correct XHTML-compliant tag is <em>.


But that's irrelevant anyway, since <i> is back in HTML5, with new semantics. But you'd know that already, since you're clearly an expert.

See here: http://html5doctor.com/i-b-em-strong-element/

Re: In A Rush, Properly Handled, and More

2010-03-15 10:55 • by pflock (unregistered)
302280 in reply to 301762
Leo:
grizz:
The Newton function probably is to avoid having a magic number in a calculation. Seems to me that's generally considered A Good Thing, not a WTF.


You're the one that does

#define ONE 1
#define TWO 2

aren't you?

Sometimes you really don't need it.


That's true. I recently got rid of that pi-crap in all my code, improving

const float sigma = foo() / pi;

to

const float sigma = foo () / 3.1;

and thus getting rid of a freaking header, yay.

Re: In A Rush, Properly Handled, and More

2010-03-15 11:52 • by cod3_complete
This is great stuff. We should have more of these "coded smorgasbords". LOL.

Re: In A Rush, Properly Handled, and More

2010-03-16 09:52 • by Héctor (unregistered)
Public Void FuckUrAss()
{
Public List<Transformers> Autobots= new List<Transformers>();
string type="Autobots"
Autobots=
try
{
appmain.BSLTransformerService.GetAllTransformers(type);
foreach(Transformers in Autobots)
{
messagebox.Show("Fuck ur Self");
}
}
catch
{
messagebox.Show("An error was found, fuck too");
return;
}
}



Re: In A Rush, Properly Handled, and More

2010-03-18 20:27 • by AN Other (unregistered)
302875 in reply to 301879
lolwtf:
If fromDate < toDate Then
'it's good. todo: handle this
Else
'it's not good. todo: handle this
End If

Make more sense now?


Also certain languages don't handle empty if statements well, could just be a hangover or habit to put a place holder.

Re: In A Rush, Properly Handled, and More

2010-03-19 14:21 • by Timothy (TRiG) (unregistered)
302906 in reply to 301772
I don't understand all this hatred for the italics tag. It's a useful and valid grammatical entity.

* The <i>Marie Celeste</i> was found drifting abandoned.
* Socrates was a Greek philosopher.
* <i>Socrates</i> has eight letters.
* "The words were not <i>The doom of Minas Tirith</i>," said Aragorn.

In none of the above cases should the italics tags be replaced with emphasis tags. For ship names, for discussion of words as words, and (in some instances) for quotations, italics are necessary.

TRiG.

Re: In A Rush, Properly Handled, and More

2010-03-19 16:20 • by The senior software consultant (unregistered)
Hey, I made the daily WTF!

But seriously, give me a break. I was on a tight deadline, and missed a comment that had been part of a seperate little code snippet, which was what was being left in. That got removed, the comment stayed :-)
« PrevPage 1 | Page 2 | Page 3 | Page 4Next »

Add Comment