[Pharo-project] [COTDC] 5 - PseudoFileStream

Stéphane Ducasse stephane.ducasse at inria.fr
Tue Feb 8 23:18:25 CET 2011


On Feb 8, 2011, at 10:26 PM, Nicolas Cellier wrote:

> I try to act as two different things:
> - a file entry in a ServerDirectory
> - a stream on the content of a file entry
> 
> I am a good example of inheritance pushed to absurd where composition
> would be more powerfull and more simple to explain.
> Any good soul willing to refactor me is welcome. (Warning, you'll have
> to revisit the whole ServerDirectory and its subclasses).

:)
I love this kind of comments because this is better than no comment and like that we just tell the truth :)

> 
> Good luck
> 
> Nicolas
> 
> 2011/2/8 laurent laffont <laurent.laffont at gmail.com>:
>> Time to add
>> COTDC rule #2: If you can't comment it, remove it.
>> Indeed it's compatible with the goal: each day, one less not commented class
>> !
>> Laurent
>> 
>> On Tue, Feb 8, 2011 at 10:01 PM, Stéphane Ducasse
>> <stephane.ducasse at inria.fr> wrote:
>>> 
>>> PseudoFileStream ...
>>>        may be we could remove it :)
>>> 
>>> Stef
>>> 
>>> 
>>> On Feb 8, 2011, at 5:39 PM, laurent laffont wrote:
>>> 
>>>> Today: PseudoFileStream
>>>> 
>>>> Comment Of The Day Contest - One Day One Comment
>>>> Rules: Each day a not commented class is elected. Each day the best
>>>> comment will be integrated with name of the author(s).
>>>> Results: http://code.google.com/p/pharo/wiki/CommentOfTheDayContest
>>>> 
>>>> Laurent
>>>> 
>>> 
>>> 
>> 
>> 
> 





More information about the Pharo-project mailing list