← @bgSponge

currently hammering on my thing with this:

Summary

Ryan Lopopolo proposes simplifying production code by removing low-value tests that assert implementation rather than behavior.

  1. Tests must justify their presence.

    Lopopolo argues that tests requiring updates whenever the underlying source changes are poor because they assert implementation instead of behavior.

    assert implementation, not behavior

  2. Removing tests simplifies production code.

    Deleting tests that merely re-assert the source allows developers to remove unnecessary seams that the tests previously demanded.

  3. Tree-shaking should follow ML ethos.

    Lopopolo suggests making impossible states unrepresentable across the entire codebase to drive radical simplifications.

    make impossible states unrepresentable

  4. Parsing should avoid validation.

    The strategy uses Lexi Lambda's 'parse, don't validate' principle as a guiding force for the codebase overhaul.

Read the original ↗Save to your Sponge

Summarized with Sponge. Quotes are the author’s own words.

More from @bg

All readings →