5Oct/090
That’s Just Embarrassing
My colleague said it best when I presented him with this gem.
Public Function IsSatelliteConsolidatedForDate(ConsolidationId As Long, EffectiveDate As Date) As Boolean
If ApplicationSupport.DataAccessProxy.IsSatelliteConsolidatedForDate(ConsolidationId, EffectiveDate) Then
IsSatelliteConsolidatedForDate = True
Else
IsSatelliteConsolidatedForDate = False
End If
End Function
Gabe: Unnecessary...
Thomas: wow!
Thomas: Maybe we should consider that as a design pattern
Gabe: what would we name the pattern?
Gabe: WhenTrueIsTrue?
Gabe: IGetPaidByTheLine Pattern?
Thomas: WhenYouNeedMoreLinesOfcode
Thomas: that's just embarrasing