Refactoring: Un frase da non dimenticare assolutamente

Arturo Pisapia ha scritto:

"A heuristic we follow is that whenever we feel the need to comment something, we write a method instead" [Fowler]

Gran bella frase ma ci tengo a fare un veloce appunto prima che si "scatenino" flame (come molte volte è successo con affermazioni di questo genere): Fowler non stà dicendo che commentare è MALE bensi che il sentire l'esigenza di commentare del codice è solitamente sintomo (uno "smell") di codice non chiaro che quindi necessita di refactoring :-D

Print | posted @ lunedì 26 luglio 2004 19:14