korrents

Our readingWhat is a korrent?

Needing to mock code in tests often signals an underlying design problem that refactoring would fix.

Drawn from what Yihui Xie said

design
What this subject means

design How things should be made and judged: what makes a design good, who should do the designing, and what an interface is for.

What are tests for, and how much testing is enough?under our view: Tests should exercise the software the way it is used, not its insides

What Yihui Xie actually said

  1. Yihui Xie Statistician and software engineer who writes R packages…
    unless the code is completely out of your control, the need for mocking often indicates a design problem-consider refactoring to make the code easier to test directly.

Added to korrents 20 Sept 2026 · How quotes work · Something wrong? Tell us

Do you hold this korrent?Do you also believe this?

I hold this too

Related korrents

Shared subject first, then similar wording. They may agree or disagree.

See this claim on the map