3 ms·
This is not entirely true. It depends on the language, but the definition of executeAfter for the most of dynamic languages would be something like public fu
by andreygrehov 10y ago
This is not entirely true. It depends on the language, but the definition of executeAfter for the most of dynamic languages would be something like
public function executeAfter($seconds)
This code does not guarantee that the value of $seconds is correct, whereas this:
public function executeAfter(Time $time)
...will help engineer to not make silly mistakes.
It definitely depends on the language, but I personally like self-explanatory code and tend to think that inlined comments should only describe things that require explanation, such as complex logic.