Hacker News new | ask | show | jobs
by smileysteve 514 days ago
The best way to write without bugs is to measure bugs, and react to them.

Airbrake, Rollbar, Datadog, New Relic mean nothing if you ignore bugs because you don't take the time to replicate them.

You also can't fix what you don't know, so you need some telemetry or reporting of not your happy path. You can't have a goal of bug free code if you don't measure bugs (that's not SMART goal because it's not measurable).

Unit Tests, Typing, Linting, a collaborative code review process are key to big free code.

1 comments

The point is to not write bugs in the first place. At the point you’ve noticed a bug and measured it in your bug tracker you’ve missed your goal. You did not write “without bugs.”