[KCP] SystemDictionary cleaning: Comments and design

Doug Way dway at riskmetrics.com
Thu Jun 12 18:05:06 UTC 2003


Sean Charles wrote:

>>
>> Such classes have too much dependencies and that's against all the 
>> basic principle of OO programming. Here is a nice example, why should 
>> I write Utilities pointOrNilFrom: '2,6' ? IMHO, that is really absurd.
>
>
> Why exactly is this absurd? If I was writing a point parsing program 
> then this would be just what I needed. 


It's only its location that is absurd.  Parsing a point from a string is 
a useful thing, but it should be on the class Point rather than in a 
catch-all class such as Utilities.  Richard's redesign would be a good 
way to handle it.

- Doug Way




More information about the Squeak-dev mailing list