by humbledrone · 15y ago · 0 comments
I don't think I'd need an 11 line comment to tell me what this definition did:
def duplicate_text( text, num_duplications )
text * num_duplications
end
In fact, I might prefer NO comment, because comments can become out of date and misleading, whereas the code always tells the truth."If you don’t have an absolute clarity in the code you’re pushing, it rears its head by way of bugs, confused coworkers, and slow code."
That's the single most confusing function name I've seen in a while.
def duplicate_text(text, count):
"""humbledrone, you effing moron, just inline
the effing astericks"""
assert FalseDocumentation is important, its just how its done today that bothers me. I have been reading the book "Computational Semantics with Functional Programming" and it has been quite intriguing. I would highly recommend it.