|
Re: Design best practice : put state-independent methodsonclass side?: msg#00166lang.smalltalk.squeak.beginners
On Tue, Mar 25, 2008 at 5:44 PM, Ramon Leon <ramon.leon@xxxxxxxxxxxxx> wrote:
_______________________________________________Classes are objects too, just because most classes build instances doesn't As a beginner who is finally starting to do some useful [Smalltalk] work in a Healthcare organization, I am finding this conversation very interesting because I write a lot of "utility" code...mostly data "pre-processing" before it goes to the Warehouse, the Reporting engine, or to files to go out the door for required reporting to other organizations.
Should I consider something more than just "XXFileProcessor file: aFile" if it will only ever run on one file that shows up in a directory once a day and the whole point is that there is only ONE processor?
Just interested, because in such "utility" cases I end up with all my helper methods on the class side and wonder to myself, "is this wrong?" because it feels very similar to writing subroutines in any other language... On that note, isn't that sort of all traits really are? A subroutine not attached to any particular object? But with no access to object data short of resorting to things like self classPool at: #Var, which I suppose defeats the point, but darn it, I keep running into situations where multiple inheritence would be great!
Rob Rothwell Beginners mailing list Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx http://lists.squeakfoundation.org/mailman/listinfo/beginners
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Design best practice : put state-independent methodsonclass side?, itsme213 |
|---|---|
| Next by Date: | Re: Design best practice : put state-independent methodsonclass side?, Matthew Fulmer |
| Previous by Thread: | RE: Design best practice : put state-independent methodsonclass side?, Ramon Leon |
| Next by Thread: | Re: Design best practice : put state-independent methodsonclass side?, Matthew Fulmer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |