PLEAC - Programming Language Examples Alike Cookbook

N

Nando Sanchez

Hi! I've been researching about dynamic languages and a couple of weeks
ago I decided that Ruby is the best... I guess most of you guys will
agree :) Well, one of the pages I found is http://pleac.sourceforge.net/
where there is a very interesting effort to create code working examples
to compare different languages. I'm a Ruby newbee and I'll try to help
as much as I can to fill in the blanks for Ruby, but I think there must
be a lot more experts that can provide great examples, so ... please
help! I don't like to see Python above Ruby, I know it's not real, it's
just a %, but Ruby is a lot better and deserves 1st place ;)

Regards,

Nando
 
J

John Joyce

For some basic structures, this is not a bad idea, but unfortunately
for many things Ruby code and approach is often pretty different from
similar programs in other languages. It's apples and oranges, they're
all fruit. It's not a competition really. Languages that are really
good at something will stick around because they're good at things in
their own way. After enough code is created in a language, it's going
to be around for a LONG time. The unbelievably long life of legacy
code was proven by the Y2K crisis. Sometimes a particular language is
the right choice for a particular task or just for the particular
situation.
If you have 3 people skilled in Python and C and PERL and a project
that works with existing COBOL to work on you might not choose Ruby
as a tool, but you might.
 
D

David A. Black

Hi --

For some basic structures, this is not a bad idea, but unfortunately
for many things Ruby code and approach is often pretty different from
similar programs in other languages.

Moreover, unless the PLEAC philosophy has changed, my impression was
that they were interested mainly in how to do things in a Perl-like
way in other languages. I seem to remember suggesting a rewrite of
one of the Ruby examples to use a block, or something along those
lines, and being told that they weren't aiming to illustrate the
individual features of separate languages. To the extent, great or
small, that PLEAC is constrained to play in Perl's ballpark in terms
of constructs and idioms, I don't think it's of much interest. I
haven't examined it in great detail recently, though.


David

--
Q. What is THE Ruby book for Rails developers?
A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black)
(See what readers are saying! http://www.rubypal.com/r4rrevs.pdf)
Q. Where can I get Ruby/Rails on-site training, consulting, coaching?
A. Ruby Power and Light, LLC (http://www.rubypal.com)
 
R

Rick DeNatale

Hi --



Moreover, unless the PLEAC philosophy has changed, my impression was
that they were interested mainly in how to do things in a Perl-like
way in other languages. I seem to remember suggesting a rewrite of
one of the Ruby examples to use a block, or something along those
lines, and being told that they weren't aiming to illustrate the
individual features of separate languages. To the extent, great or
small, that PLEAC is constrained to play in Perl's ballpark in terms
of constructs and idioms, I don't think it's of much interest. I
haven't examined it in great detail recently, though.

Hmmmmm,

Might be interesting to come up with a similar set of examples which
highlight the ruby way of doing things and then challenge others to
replicate the ruby code in other languages.

Just a thought.
 
C

Chad Perrin

Hmmmmm,

Might be interesting to come up with a similar set of examples which
highlight the ruby way of doing things and then challenge others to
replicate the ruby code in other languages.

Just a thought.

. . or just check again on whether they'll accept Ruby examples that
illustrate a Ruby idiom -- assuming the answer is still "no", archive
the answer, then:

1. Create a site dedicated to solving the same problems in the Ruby
idiom within Ruby.

2. Post the text of the "no" answer on the site.

3. Consider letting other languages play without forcing them to
adhere to your own language's idiomatic methodologies.

If the answer is now "yes", just contribute to PLEAC.
 
M

M. Edward (Ed) Borasky

Nando said:
Hi! I've been researching about dynamic languages and a couple of weeks
ago I decided that Ruby is the best... I guess most of you guys will
agree :) Well, one of the pages I found is http://pleac.sourceforge.net/
where there is a very interesting effort to create code working examples
to compare different languages. I'm a Ruby newbee and I'll try to help
as much as I can to fill in the blanks for Ruby, but I think there must
be a lot more experts that can provide great examples, so ... please
help! I don't like to see Python above Ruby, I know it's not real, it's
just a %, but Ruby is a lot better and deserves 1st place ;)

Regards,

Nando
Rather than messing with comparing Ruby with other languages and
programming examples, just get one of the cookbook-style Ruby books and
the Pickaxe book and learn by example! I'd recommend "The Ruby Way,
Second Edition" and "Programming Ruby, Second Edition" to start with.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top