Mehdi Akiki
Writing

Rust builds, tests, and measurements

Keep failing inputs, diagnose build inputs, and compare performance with observable controls. Each guide gives a concrete reproduction, the resulting decision, and the limits of the evidence.

  1. Keep the broken input before you fix the bug

    Capture a small regression fixture before changing code or asking an agent for a fix. Prove that the test detects the original failure and preserves the real requirement.

  2. A test should fail for the reason you meant

    An is_err assertion can pass because the database is unreachable. Check the intended error category and the stored outcome so unrelated failures cannot make a negative test green.

  3. Change one performance variable at a time

    An optimization comparison needs equivalent work. Hold inputs steady, separate implementation changes, and investigate interactions after establishing a trustworthy baseline.