Embedded
Writing firmware that survives the field
Your device will run out of battery, lose signal and be dropped. The firmware that survives is the one written for those days, not the demo.

What to establish first
List the failures a device may encounter in the field: unexpected power loss, weak connectivity, exhausted storage, and firmware that cannot complete boot.
Implementation approach
Persist state atomically, set retry budgets, and make interrupted operations resumable. Keep a known-good image available and record enough diagnostic information to understand a reset after the device reconnects.
How to verify it
Cut power at different points in the write and update process. Reconnect devices after extended outages and confirm they recover without a factory reset or manual intervention.