It is usually more work to verify that code is correct than to write correct code in the first place.
Edit: At least for me it isn't obvious at all that those snippets are correct.
Edit: At least for me it isn't obvious at all that those snippets are correct.
Brilliantly articulated - thank you. I wonder if this is a generic pattern (like fallacies)?
Obviously that is how _I_ type code, and not something that can generalize to how others work. So it's my preference to still think about my code before, and while, I write it.