Image via Wikipedia
"there are many days when I think that my company simply hired our development team because they were fast typists."
"It's not as if we're paid by the line of code, but our management team is run by a couple MBAs that love to quantify everything. And as we all know, nothing quantifies programmer productivity better than the 'units of software' delivered. And speaking of a unit of software, here's a valuable one put together by one of my more 'productive' colleagues.
Public Function makeBoolean(ByVal b As Boolean)
Return b
End Function
Public Function makeByte(ByVal b As Byte)
Return b
End Function
Public Function makeChar(ByVal c As Char)
Return c
End Function
Public Function makeDate(ByVal d As Date)
Return d
End Function
Public Function makeDecimal(ByVal d As Decimal)
Return d
End Function
Public Function makeDouble(ByVal d As Double)
Return d
End Function
Public Function makeInteger(ByVal i As Integer)
Return i
End Function
Public Function makeLong(ByVal l As Long)
Return l
End Function
Public Function makeObject(ByVal o As Object)
Return o
End Function
Public Function makeSByte(ByVal s As SByte)
Return s
End Function
Public Function makeShort(ByVal s As Short)
Return s
End Function
Public Function makeSingle(ByVal s As Single)
Return s
End Function
Public Function makeString(ByVal s As String)
Return s
End Function
Public Function makeString2(ByVal s As String)
Return s.ToString()
End Function
Public Function makeUInteger(ByVal u As UInteger)
Return u
End Function
Public Function makeULong(ByVal u As ULong)
Return u
End Function
Public Function makeUShort(ByVal u As UShort)
Return u
End Function
"I guess I'd argue that this is redundant code.... but then again, I'm not paid to argue, but to code."
"there are many days when I think that my company simply hired our development team because they were fast typists."
"It's not as if we're paid by the line of code, but our management team is run by a couple MBAs that love to quantify everything. And as we all know, nothing quantifies programmer productivity better than the 'units of software' delivered. And speaking of a unit of software, here's a valuable one put together by one of my more 'productive' colleagues.
Public Function makeBoolean(ByVal b As Boolean)
Return b
End Function
Public Function makeByte(ByVal b As Byte)
Return b
End Function
Public Function makeChar(ByVal c As Char)
Return c
End Function
Public Function makeDate(ByVal d As Date)
Return d
End Function
Public Function makeDecimal(ByVal d As Decimal)
Return d
End Function
Public Function makeDouble(ByVal d As Double)
Return d
End Function
Public Function makeInteger(ByVal i As Integer)
Return i
End Function
Public Function makeLong(ByVal l As Long)
Return l
End Function
Public Function makeObject(ByVal o As Object)
Return o
End Function
Public Function makeSByte(ByVal s As SByte)
Return s
End Function
Public Function makeShort(ByVal s As Short)
Return s
End Function
Public Function makeSingle(ByVal s As Single)
Return s
End Function
Public Function makeString(ByVal s As String)
Return s
End Function
Public Function makeString2(ByVal s As String)
Return s.ToString()
End Function
Public Function makeUInteger(ByVal u As UInteger)
Return u
End Function
Public Function makeULong(ByVal u As ULong)
Return u
End Function
Public Function makeUShort(ByVal u As UShort)
Return u
End Function
"I guess I'd argue that this is redundant code.... but then again, I'm not paid to argue, but to code."
0 comments:
Post a Comment