2 ms·
Although there is some merit to learning by repetition and using memorization to keep core concepts top of mind, this is a very bad example of it since it’s lit
by Spivak 5y ago
Although there is some merit to learning by repetition and using memorization to keep core concepts top of mind, this is a very bad example of it since it’s literally just trivia. There is nothing at all fundamental about time.sleep being seconds. People memorize it because the have to and have used it enough times.
If time.sleep took a timedelta it becomes impossible to use incorrectly with a type checker since the caller specifies their own units. There is no merit to worshiping ambiguous design.