• You build the solution.
  • You run it.
  • It does not work.
  • Your first instinct might be to defend the code.
  • Maybe the requirement was wrong.
  • Maybe the environment is broken.
  • Maybe the test is wrong.
  • Sometimes those things really are true.

But before deciding that, investigate.

  • What exactly failed?
  • Can you reproduce it?
  • What did you expect?
  • What actually happened?
  • Which assumption was wrong?

A professional solution is not valuable because it was your first idea.

It is valuable because it solves the problem safely and appropriately.

  • Sometimes that means changing the code.
  • Sometimes it means changing the design.
  • Sometimes it means asking a question about the requirement.
  • Sometimes it means throwing away an approach that looked promising.

This can be uncomfortable.

You invested time in the original solution.

But professional work is not about protecting your previous decisions.

It is about getting to the right outcome while understanding the trade-offs.

Your first idea is a hypothesis.

It is not a commitment.