|
It's hard to believe anyone would write a check based on this mail, but apparently some are gullible enough.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
if (_Uptime != null)
{
_Uptime.Remove(TraCommon.Tokens.TraService_Speed);
}
{
_Uptime = new Service.Message();
_Uptime.Code = SysCommon.CommandCode.SysUptimeEvt;
} I just found this in my code. It's been there for years.
Software Zen: delete this;
|
|
|
|
|
Took me a minute to see that one.
|
|
|
|
|
|
Software Zen: delete this;
|
|
|
|
|
After that post in the Lounge earlier, there seems to be something of a trend of screwing up control structures today!
|
|
|
|
|
This[^] one?
'Tis quite similar. Mine was a sin of omission, while his was a sin of emission.
Software Zen: delete this;
|
|
|
|
|
Gary Wheeler wrote: Mine was a sin of omission, while his was a sin of emission.
Someone mentioned in the other link that an empty statement shouldn't be allowed after an if statement.
I think both should be allowed, but have warning messages. His would be "The conditional <if|else> statement won't execute anything", yours "Extra brackets added for no apparent reason". Both may be a stretch for the compiler to see. On the other hand, people who like padded coding might not like that.
|
|
|
|
|
Thought I said "The conditional (if-else) statement won't execute anything" but I used the special characters (@lt; @or; >) that hid it and didn't look at my preview. Great, only gt works as substitution letters.
|
|
|
|
|
Yeah... just last week it took me and another engineer brainstorming for an hour before we realized a bit was flipped the wrong way. Our world is fun, wild, and at times all too damned granular.
Think of how stupid the average person is, and realize half of them are stupider than that. - George Carlin
|
|
|
|
|
Oops! That had to hurt.
I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.
Stephen Hawking
|
|
|
|
|
Fortunately it's in some logging code that only field service cares about.
Software Zen: delete this;
|
|
|
|
|
Phew. If that had been anywhere else, you would have had a major problem there.
I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.
Stephen Hawking
|
|
|
|
|
missing else?
Don't you just love scoping braces.
|
|
|
|
|
Norm .net wrote: Don't you just love scoping braces
You also dig chicks with braces?
|
|
|
|
|
Nothing against them except perchance in, humm, let's say orally challenging situations.
"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian
|
|
|
|
|
What a catch!
Make it work. Then do it better - Andrei Straut
|
|
|
|
|
I did this once in c++, took very long to figure out:
if (condition);
{
}
____________________________________________________________
Be brave little warrior, be VERY brave
|
|
|
|
|
I'd be more concerned if there was something between the braces to get unexpectedly executed irrespective of the intended condition.
|
|
|
|
|
That's exactly what happened, irrespective of the condition the code block always executed...
____________________________________________________________
Be brave little warrior, be VERY brave
|
|
|
|
|
And I did this once in C, also took me long to figure it out:
for (i=0; i <= ....; i ++);
{
}
|
|
|
|
|
Add this comment before anyone notice your code!
if (_Uptime != null)
{
_Uptime.Remove(TraCommon.Tokens.TraService_Speed);
}
{
_Uptime = new Service.Message();
_Uptime.Code = SysCommon.CommandCode.SysUptimeEvt;
}
modified 30-Oct-12 5:56am.
|
|
|
|
|
Sadly, SVN will tell you that it really is ;(
|
|
|
|
|
Embarassing2A: We use SourceSafe.
Embarassing2B: It would still tell you that it really is.
Software Zen: delete this;
|
|
|
|
|
You could always lie and say the blame was falsely attributed due to corruption.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|