← Graph

Mutant as complexity metric and refactoring guide

takeaway 2 connections

The count of mutations Mutant generates per subject is, in Schirp's opinion, a better complexity measure than cyclomatic complexity — which is hard to compute faithfully in Ruby because the control flow is not aesthetically assessable. Separately, when taking over an unfamiliar class, running Mutant with no killed tests can be used purely as a refactoring aid: the reduction-operator output shows valid transformations; the first refactor commit can simply apply the ones with no proof of value, then public-interface tests can pin behaviour before a deeper refactor.

type
insight
takeaway Mutant as complexity metric and refactoring guide
about
Mutant tool
About using Mutant beyond regression detection.
takeaway Mutant as complexity metric and refactoring guide
from_talk
Pair of insights from the Q&A.

Provenance

Read by
4 extractions