@[email protected] to Programmer [email protected]English • 2 years agoManager: This task only takes 30 minutes. Why did it take you the whole day?programming.devimagemessage-square98fedilinkarrow-up1782
arrow-up1782imageManager: This task only takes 30 minutes. Why did it take you the whole day?programming.dev@[email protected] to Programmer [email protected]English • 2 years agomessage-square98fedilink
minus-square@[email protected]linkfedilink5•edit-22 years agoP1000x this. I can read a diff. I need to know why. No, a code comment isn’t good enough, it’s out of date after the next commit.
minus-squareDontTakeMySkylinkfedilink0•2 years agoCode comments for "why"s that persist. Commits for why’s that are temporary. If you need to run X before Y, add a comment. If you added X before why because it was easier, leave it in a commit
minus-square@[email protected]linkfedilink1•2 years ago If you need to run X before Y… Add a test that asserts that.
P1000x this.
I can read a diff.
I need to know why.
No, a code comment isn’t good enough, it’s out of date after the next commit.
Code comments for "why"s that persist. Commits for why’s that are temporary.
If you need to run X before Y, add a comment. If you added X before why because it was easier, leave it in a commit
Add a test that asserts that.