Dev Book Studies Estudos Deb

M.Folwer Refactoring - 11 - Refactoring APIs

  • Separate Query from Modifier (306)

  • Parametrize Function (310)

  • Remove Flag Argument (314)

  • Preserve Whole Object (319)

  • Replace Parameter with Query (324)

  • Replace Query with Parameter (327)

  • Remove Setting Method (331)

  • Replace Constructor with Factory Function (334)

  • Replace Function with Command (337)

  • Replace Command with Function (344)

11-10-replaceCommandWithFunction.png