Because consultants work on many different kinds of projects, they have the ability to produce large libraries of boilerplate code. "Hey, we did something like this before. Just a couple of tweaks and we're done!" Code reuse makes everyone happy, especially management on both sides.


Recently, when the consulting firm that Ash's company hired showed the managers how quickly they could churn out new code, management decided to accelerate the development time-line. After all, the hard work was already done.


Private Shared Function subtractMonth(ByVal evaluationDate As DateTime) As DateTime
    Dim s As StringBuilder = New StringBuilder

    'original = Convert.ToDateTime(evaluationDate.Year.ToString() + "-" + evaluationDate.Month.ToString() + "-01").AddDays(-1)
    s.Append(evaluationDate.Year.ToString())
    s.Append("-")
    s.Append(evaluationDate.Month.ToString())
    s.Append("-01")

    Return Convert.ToDateTime(s.ToString()).AddDays(-1)
End Function
[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!