bool CheckNumberOfElements(double[] container, int maxLength)
{
if (container.Length > maxLength)
return true;
else
{
if (container.Length < maxLength)
return false;
else
{
if (container.Length == maxLength)
return false;
else
{
if (container.Length != maxLength)
return true;
}
}
}
}
Totally imaginary examples of things which never happen in real world software development projects.
Showing posts with label clever statements. Show all posts
Showing posts with label clever statements. Show all posts
Sunday, November 14, 2010
if - else is really a great thing! You can't use it too much!
Senior developers sometimes show their ablilties by writing extremely clever methods. This provides their junior-fellows with a good source for education and real admiration:
Subscribe to:
Posts (Atom)