Question about Ruby philosophy

Paul L. wrote:

Gee, I hope the newbies don’t try this just to see what happens. If they
“succeed”, they might then try for the more concise, powerful form, which I
won’t post an example of.

I’m just a curmudgeon. My example wasn’t in Ruby, either. It’s really an
example of how to shoot yourself in the foot without Ruby. :slight_smile:


M. Edward (Ed) Borasky, FBG, AB, PTA, PGS, MS, MNLP, NST, ACMC(P)
http://borasky-research.blogspot.com/

If God had meant for carrots to be eaten cooked, He would have given
rabbits fire.

If you wrapped it with system() in ruby, would it return true or false?

x1 wrote:

If you wrapped it with system() in ruby, would it return true or false?

Depends on whether the target directory exists. :slight_smile:

Christian N. wrote:

Do you consider Ruby a good language for teaching people that haven’t
programmed yet? Just wondering.

I personally consider teaching programming in any language without a
REPL as Cruel and Unusual ™ torture. Compiler-wrestling is a skill of
much value, but should be kept out of introductory courses and put into
language-specific seminars, IMO.

Disclaimer: That’s from the position of a “victim” of having an
introductory course in (Borland Turbo) C, not an actual instructor.

David V.

Christian N. writes:

Do you consider Ruby a good language for teaching people that haven’t
programmed yet? Just wondering.

Sorry for answering the question addressed not to me,
but I’m an aged professional programmer who programmed in many languages
and for a long time was a lecturer and trainer of OOP.
Compared to other programming languages Ruby has many attracting
features. It is clear in understanding, pure OO, lightweight and
elegant, pragmatic and powerful, cross-platform, was deriveded from good
parent languages, absorbed modern programming ideas, supports different
programming paradigms.
So Ruby is almost ideally suitable for students and teachers, and I
strongly recommend for beginner programmers to start with Ruby.

Mike S.
www.shokhirev.com/mikhail/

Max M. wrote:

On 12/7/06, x1 [email protected] wrote:

As close to being shot in the foot as I could get:

irb(main):008:0> puts ENV[‘OS’]
Windows_NT

That’s missing your foot altogether and shooting yourself in the head
instead…

Muah.

(PS: Could have been MS Bob.)

On 2006-12-08, David V. [email protected] wrote:

Christian N. wrote:

Do you consider Ruby a good language for teaching people that haven’t
programmed yet? Just wondering.
=20

I personally consider teaching programming in any language without a
REPL as Cruel and Unusual ™ torture. Compiler-wrestling is a skill of

What is a REPL?

Jim C. wrote:

On 2006-12-08, David V. [email protected] wrote:

Christian N. wrote:

Do you consider Ruby a good language for teaching people that haven’t
programmed yet? Just wondering.
=20
I personally consider teaching programming in any language without a
REPL as Cruel and Unusual ™ torture. Compiler-wrestling is a skill of

What is a REPL?

Read-eval-print-loop. For example, irb.

David V.

On 2006-12-08, David V. [email protected] wrote:

of

=20
What is a REPL?
=20

Read-eval-print-loop. For example, irb.

Thanks!