[#3986] Re: Principle of least effort -- another Ruby virtue. — Andrew Hunt <andy@...>

> Principle of Least Effort.

14 messages 2000/07/14

[#4043] What are you using Ruby for? — Dave Thomas <Dave@...>

16 messages 2000/07/16

[#4139] Facilitating Ruby self-propagation with the rig-it autopolymorph application. — Conrad Schneiker <schneik@...>

Hi,

11 messages 2000/07/20

[ruby-talk:03823] Re: Array.pick

From: Aleksi Niemel<aleksi.niemela@...>
Date: 2000-07-05 10:33:04 UTC
List: ruby-talk #3823
> > Just a general comment--a brief statement of purpose and using
> > conventional indentation would be helpful. Apart from what should be

Agreed! I'm sorry I missed that this time. Hopefully I'm better person next
time :).

Myabe I thought the code example will do the job, but I agree, it's not
enough. (While matz could have different opinion :], and I could argue that
all that was presented was 'a brief statement' or two :).

Well, I actually I've already generated Array#pick -family, so I'll be
posting it within few weeks.

> This is the only one remaining advantage of Python over Ruby, IMHO!
> Use indentation for grouping ... :-)

Well, it's not the only (while I'm not a Python programmer). For example,
Ruby *removes* the burden to remember to write ';' in the end of each
statement, but it *requires* to write 'end' in the end of most language
constructs. Python is better here, while the solution, using (thus forcing)
indenting, might not be good in general (I think it's quite harmless most of
the time :). Maybe we enter to the era where you can drop 'end's away,
provided you honor good indenting practises.

Another point where Python might be better, is the established notion for
these 'brief statements of purpose', which are implemented as docstrings (if
I've understood correctly). Maybe rd will be the way, maybe something else.
I don't know, I'm just a beginner.

Anyway, I think (hope) my original mail was indented properly. Uh, I see.
You're referring to usage of tabs instead of two spaces. Well, that's true,
a blunder. So there's no recommendation to treat '\t' as '  '?

	- Aleksi

In This Thread

Prev Next