-
(purge lint violations)
-
Passes the tests
-
Reveals intention
-
No duplication
-
Fewest elements
({} —-> null) no code at all->code that employs null
(null —-> constant)
(constant —-> constant+) a simple constant to a more complex constant
(constant —-> variable) replacing a constant with a variable or an argument
(statement —-> statements) adding more unconditional statements.
(unconditional —-> if) splitting the execution path
(variable —-> array)
(array —-> container)
(statement —-> recursion)
(if —-> while)
(expression —-> function) replacing an expression with a function or algorithm
(variable —-> assignment) replacing the value of a variable.