Is it? Has it changed? What about now?
-
This is what I love about the system I work on. Some values changed to protect the guilty
if( this.idtoservice != null )
{
sOwner = this.idtoservice.Common.Security.Owner;
}
else if( this.idtoservice != null )
{
sOwner = this.idtoservice.Common.Security.Owner;
}
else if( this.idtoservice != null )
{
sOwner = this.idtoservice.Common.Security.Owner;
}- Arthur Souza
-
This is what I love about the system I work on. Some values changed to protect the guilty
if( this.idtoservice != null )
{
sOwner = this.idtoservice.Common.Security.Owner;
}
else if( this.idtoservice != null )
{
sOwner = this.idtoservice.Common.Security.Owner;
}
else if( this.idtoservice != null )
{
sOwner = this.idtoservice.Common.Security.Owner;
}- Arthur Souza
Are you sure? Are you sure? Are you absolutely sure? :laugh:
"Real men drive manual transmission" - Rajesh.
-
This is what I love about the system I work on. Some values changed to protect the guilty
if( this.idtoservice != null )
{
sOwner = this.idtoservice.Common.Security.Owner;
}
else if( this.idtoservice != null )
{
sOwner = this.idtoservice.Common.Security.Owner;
}
else if( this.idtoservice != null )
{
sOwner = this.idtoservice.Common.Security.Owner;
}- Arthur Souza
I suspect this was written by Walt.
-
:doh: is all I can say. I think the coder forgot to call the
TurnBrainOn()
function before he started.public class Coder: Employee{
public override bool Initialize(IInitializeContext init){ //init.TurnBrainOn(this); <-- Need to call this! //Other initialization goes here } public string WriteCode(ICodeInfo info, ICodeContext ctxt){ //TODO: Uncomment this! //if (!this.IsBrainOn){ //throw new BrainNotReadyException(this); //} //Rest of implementation goes here. }
//Rest of implementation goes here.
}
public class SysAdmin : Employee
{public override void DoWork(IWorkItem workItem) { if (workItem.User.Type == UserType.NoLearn){ throw new NoIWillNotFixYourComputerException(new Luser(workItem.User)); }else{ base.DoWork(workItem); } }
}
You need to also have the following after
init.TurnBrainOn(this)
:if ( !CaffineLoaded() ) throw new NoCaffineException(this)
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
-
This is what I love about the system I work on. Some values changed to protect the guilty
if( this.idtoservice != null )
{
sOwner = this.idtoservice.Common.Security.Owner;
}
else if( this.idtoservice != null )
{
sOwner = this.idtoservice.Common.Security.Owner;
}
else if( this.idtoservice != null )
{
sOwner = this.idtoservice.Common.Security.Owner;
}- Arthur Souza
This coder has been around a long time, you may remember the redundancy design, tell me 3 times, he has just incorporated it at a lower level! BTW this could use a renaming for greater accuracy.
if( this.idiotservice != null )
{
sOwner = this.idiotservice .Common.Security.Owner;
}Never underestimate the power of human stupidity RAH
-
This coder has been around a long time, you may remember the redundancy design, tell me 3 times, he has just incorporated it at a lower level! BTW this could use a renaming for greater accuracy.
if( this.idiotservice != null )
{
sOwner = this.idiotservice .Common.Security.Owner;
}Never underestimate the power of human stupidity RAH
-
This is what I love about the system I work on. Some values changed to protect the guilty
if( this.idtoservice != null )
{
sOwner = this.idtoservice.Common.Security.Owner;
}
else if( this.idtoservice != null )
{
sOwner = this.idtoservice.Common.Security.Owner;
}
else if( this.idtoservice != null )
{
sOwner = this.idtoservice.Common.Security.Owner;
}- Arthur Souza
To be completely boring: looks like someone had a race condition. Although you still need to be insane to attempt threading without knowing anything about it.
He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Chineese Proverb] Jonathan C Dickinson (C# Software Engineer)
-
This is what I love about the system I work on. Some values changed to protect the guilty
if( this.idtoservice != null )
{
sOwner = this.idtoservice.Common.Security.Owner;
}
else if( this.idtoservice != null )
{
sOwner = this.idtoservice.Common.Security.Owner;
}
else if( this.idtoservice != null )
{
sOwner = this.idtoservice.Common.Security.Owner;
}- Arthur Souza
-
Oops! It is complicated :-D
It's easier as do{ }while() loop. :-D
CEO at: - Rafaga Systems - Para Facturas - Modern Components for the moment...
-
Was somebody being paid by the lines of code? Wow!
There are only 10 types of people in the world, those who understand binary and those who don't.
-
It's easier as do{ }while() loop. :-D
CEO at: - Rafaga Systems - Para Facturas - Modern Components for the moment...
;P
-
Some additional ones: Three is a magic number. (Schoolhouse Rock) What I tell you three times is true. (The Hunting of the Snark; Lewis Carroll)