Re: "Replace Temp with Query" use cases.
Richard <[email protected]>
| Newsgroups | gmane.comp.programming.refactoring |
|---|---|
| Organization | multi-cellular, biological |
| Message-ID | <[email protected]> |
In article <[email protected]>, Olof Bjarnason <[email protected]> writes: > When I look at your code, I get the feeling the function doSomethingWithX > ought to be a method of the class X. The reason being so many > getters/setters are used inside doSomethingWithX - that is a smell that the > algorithm should really be inside the class, since it 'know' so much about > X. Yes, the principle of "tell, don't ask" also came to mind as I was reading that code. -- "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download <http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/> Legalize Adulthood! <http://legalizeadulthood.wordpress.com> ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/refactoring/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/refactoring/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/