10 Dec
2003
10 Dec
'03
5:54 a.m.
MenTaLguY wrote:
I think the best fix is probably to move the logic into SPIcon rather than having the path explicitly specified everywhere at all. That will touch a lot of code in the process.
Or...
It might be best to have it in some factory method. It might be that SPIcon shouldn't know about the context of how it is used, but also that the current using code shouldn't know about path details either. Thus often a factory method in the middle can give the best encapsulation.