|
|
|
|
|
by SansGuidon
590 days ago
|
|
I'm not inclined to encourage multitasking just by rushing throwing more code while also driving while also writing a message to the kids while also eating.
It's also charitable to take the time to focus. And maybe think about how this code is not worth it or not urgent anyway. And doing less can be good |
|
Imagine if you type very slowly. You first take your time to consider what to write and when you're finally certain what to do you start typing. But when you've finished only the type declaration your alarm clock rings because you have to go pick up the kids.
So you go pick up the kids and when you're back home you have dinner and then you help the kids with their homework and by the time you can get back to what you were doing you have forgotten where you were. You could try to recollect what you had decided on, but that would be pointless because it'd be time to call it a night when you're back where you were.
So then you have to punt it to the next day, and then you get back to it and finish the task. But because you type so slowly there isn't enough time to properly document it and write test cases. So you have to do that the following day.
Whereas if you can type fast you could have finished writing the code before you have to go pick up the kids. So then you could write the documentation and test cases after helping them with the homework. And most of the time you gained was not gained because you write sloppy code or did half a million things at the same time. It was gained because you didn't have to spend half a day trying to figure out what you had decided to do in the first place.
It's better to spend 7 hours carefully planning the code and 1 hour writing the code than spending 4 hours planning the code and 4 hours writing it. Typing slow is bad because you have less time to think. Typing fast is good because you have more time to think.