[Pharo-project] OOP best practices

Fernando olivero fernando.olivero at usi.ch
Thu Oct 14 15:48:40 EDT 2010


Hi Hernan, just wanted to get your opinion on the following method, that attempts to adhere to your "complete objects" pattern. ( ESUG 2010 TALK).

PerformedExperiment>>experiment: anExperiment start: aTime stop: aStopTime participant: aParticipant tasks: aCollectionOfTasks
	| experiment |
	experiment := self new.
	experiment experiment: anExperiment start: aTime stop: aStopTime participant: aParticipant tasks: aCollectionOfTasks.
	^ experiment	


In your experience, how does the pattern cope with large keyword selectors.

Maybe this case is not that evident, although we should try to avoid having more than 4 instance variables anyway, i would like to get your opinion on this problem (?).

Thanks,
Fernando



More information about the Pharo-dev mailing list