"I've lost the will to live," Reacher writes, "or at the very least, debug my coworker's code."
"Whenever this coworker works on a new project, he always insists upon adding in Utils.cs. It's a collection of static methods that he's been building up since a CS class at university, and contains all sorts of useful helpers like this...
public static double Add(double firstNo, double secondNo)
{
double total=firstNo+secondNo;
return total;
}
public static double Add(double[] valueArray)
{
double total = 0.00;
foreach(double val in valueArray)
{
total+=val;
}
return total;
}
public static double Multiply(double num1, double num2)
{
return num1*num2;
}
"Time and time again, he claims they're useful 'in general'...