Extract helper

  • 2025-10-18

함수를 뽑아내기. 타이딩 중 하나.

You see a block of code inside a routine that has an obvious purpose and limited interaction with the rest of the code in the routine. Extract it as a helper routine. Name the routine after the purpose (not how the routine works). …

The refactoring-aware among you will recognize “Extract method” in this tidying. Executing this tidying/refactoring can be tricky without automated refactoring. That’s why you should be in an environment that offers automatic refactoring. It is the 21st century, after all.

Tidy first? A personal exercise in empirical software design.