This is Real
August 2nd, 2009
Real code in a production system which will remain unnamed, as will the source.
Drink it in.
class Customer
{
public string Role;
public void Save()
{
// lots of code here
string[] roles = Roles.GetAllRoles();
foreach (string role in roles)
{
if (Role.ToUpper() == role.ToUpper())
{
Role = role;
break;
}
}
// lots more code
}
}
It actually took me a moment to see the real beauty in this.


