▲ 792 ▼ Manager: This task only takes 30 minutes. Why did it take you the whole day? (programming.dev) submitted 2 years ago by hypnotic_nerd@programming.dev to c/programmer_humor@programming.dev 95 comments fedilink hide all child comments
[–] deadbeef79000@lemmy.nz 2 points 2 years ago (1 child) If you need to run X before Y... Add a test that asserts that. permalink fedilink source parent hideshow 2 child comments replies: [–] KeepFlying@lemmy.world 2 points 2 years ago With a comment on the test detailing why it matters so people don't just assume the test is out of date when it fails. And ideally test the underlying result of x before y, not the fact that x is called before y. And while we're at it, assert in Y that X has been called, and again comment the reason for the preconditions. permalink fedilink source parent
[–] KeepFlying@lemmy.world 2 points 2 years ago With a comment on the test detailing why it matters so people don't just assume the test is out of date when it fails. And ideally test the underlying result of x before y, not the fact that x is called before y. And while we're at it, assert in Y that X has been called, and again comment the reason for the preconditions. permalink fedilink source parent