An idea from Dscho:
"Continue the (good!) idea of ResultHandler, but simplify it first.
eg: Why does every method in ResultHandler repeat that it handles something?"
I see what he means:
void handleWarning(Warning warning);
could just be
void warning(Warning warning);
but maybe that's too little information as method names should be verbs...
so maybe this one is just a matter of taste...
processWarning
dealWithWarning
showWarning
useWarning
or maybe I miss the point...?
An idea from Dscho:
"Continue the (good!) idea of ResultHandler, but simplify it first.
eg: Why does every method in ResultHandler repeat that it handles something?"
I see what he means:
void handleWarning(Warning warning);
could just be
void warning(Warning warning);
but maybe that's too little information as method names should be verbs...
so maybe this one is just a matter of taste...
processWarning
dealWithWarning
showWarning
useWarning
or maybe I miss the point...?