Just had an "interactive" code review.
The team spent at least five minutes arguing over whether I should have done this:
if (cond): return ...else: return False
or this
if (cond): return ...return False
#python
@yantor3d They missed the more important issue, which is that you can remove the parentheses around cond.
@peterdrake The actual code didn't have the parenthesis - that was an abstraction for the purpose of the toot
QOTO: Question Others to Teach Ourselves An inclusive, Academic Freedom, instance All cultures welcome. Hate speech and harassment strictly forbidden.
@peterdrake The actual code didn't have the parenthesis - that was an abstraction for the purpose of the toot