Squeak readable to most people on this list, but is it to eve ryone?

Oca Emilio eoca at afip.gov.ar
Thu Mar 4 13:07:44 UTC 2004


> > I find a series of short lines with good temp 
> > variable names far easier to read than long Smalltalk lines.
> > 
> 
> Me, too.  ( And I also use parens a fair amount :))
My preferences are:
a) To write Smalltalk expressions, one for each of the steps required to get
done a method's intention or work.
b) Don't use temp if they are not relevant to the essence of that method.
c) If a expression gets to big or complex, split it in several conceptual
lines (here is where prityPrint fails for me).
d) If b) becomes necessary or c) becomes unreadable, it's time to build new
methods.

On parents, I prefer to make clear for anyone (expert or not) reading my
code the way expressions are solved. I tend to add unnecessary parents to
achieve this.
It happened to me the need to read code on other languages with more complex
syntax and precedence, and I pretend to avoid that experience to the ones
who read my code.

Regards

	Emilio



More information about the Squeak-dev mailing list