The Daily WTF
“This was developed by the offshore team,” is usually spoken as a warning. There are a lot of reasons why the code-quality from offshore teams has such a bad reputation. You can list off a bunch of reasons why this is true, but it all boils down to variations on the Princpal-Agent Problem: the people writing the code (the agents) don’t have their goals aligned with your company (the principal).
Magnus M recently inherited some C# code which came from the offshore team, and it got principal-agented all over.
/// <summary> /// License Person CompanyName /// </summary> private string ErrorMsg { get { return “It is not possible to connect to the license server at this time.” + Environment.NewLine + Environment.NewLine + “Please try again later or contact customer service for help at info@domain.com” + Process.Start(“mailto:info@domain.com”); } }
When I started reading this code, I just got annoyed
To read the full article click on the 'post' link at the top.