writeField(name)
, which tells us that the “name” thing is a fieldreport.appendFooter()
, not a function appendFooter(report)
I don’t fully understand what are good dyadic and Triads functions. How do I know when the two/three arguments are “natural” to be acceptable?
For example, the author uses example assertEquals(expected,actual)
to be a bad dyadic function.
Let’s say we want to compare expected value returned by a function that calculates some formula to actual value returned by a function that retrieves the actual value in the db.
This usage to me seems fine, and I want to learn why this isn’t a good code
...
def doesExpectedEqualActual(expected,actual):
if expected == actual:
return True
else:
return False