[Pharo-project] OOP best practices

laurent laffont laurent.laffont at gmail.com
Fri Oct 15 02:00:16 EDT 2010


>
>  PerformedExperiment class >>
>    for: anExperiment
>    startedAt: aStartTime
>    stopedAt: aStopTime
>    madeBy: aParticipant
>    with: aCollectionOfTasks.
> | instance |
> instance := self new.
> instance
>  initializeFor: anExperiment
>     startedAt: aStartTime
>     stopedAt: aStopTime
>      madeBy: aParticipant
>     with: aCollectionOfTasks.
>  ^ instance
>


I don't really like this way of formatting the message with line breaks. I
agree on Inline Message Pattern in Kent Beck's Smalltalk Best Practice
Patterns. There's the draft here
http://stephane.ducasse.free.fr/FreeBooks/BestSmalltalkPractices/Draft-Smalltalk%20Best%20Practice%20Patterns%20Kent%20Beck.pdf

Look at p.127 / 128


Cheers,

Laurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20101015/fa90d871/attachment-0001.html>


More information about the Pharo-dev mailing list