if isDelivered and isNotified:
isDone = True
else:
isDone = false;
is not the same code as isDone = isDelivered and isNotified
in ruby, python, js (and more?).[edit: while I'm nitpicking... breaking webpage text selection is also a clear sign of poor programming]
[Edit2: more unsubstantiated "absolute truth" from OP]:
Using sleep(), cron jobs [...] is almost always wrong.
false. Any hw related code (most of the code humanity had created?) relies on such timing considerations. Another common mistake I see is generating a random file or identifier and hoping that collisions will never happen
false. This is a 100% valid approach, the odds of uuid collision are 0 to any practical consideration.