Bruce Eckel wouldn't know why to switch from Python to Ruby

… be careful, you’re gonna bring down the python coding police …

Although not a physical requirement of the runtime, you named your first
variable in the class method slf … the python community would eat you
alive for that …

They prefer ( and ALL their docs make sure to tell you over and over )
that the first parameter of the class method be named self.

… Dive into python and every other tutorial on the topic actually
stops to
make sure you understand this …

I find it humorous … and a bit retentive … but, to each their own.

j.

On 12/22/05, gabriele renzi [email protected] wrote:

is it just me or did that ruby code look a lot cleaner?
end
tomayto tomahto, I’d say.


“Remember. Understand. Believe. Yield! → http://ruby-lang.org

Jeff W.

On Fri, Dec 23, 2005 at 03:42:50AM +0900, gabriele renzi wrote:

while in python it would be:
class Foo:
def init(slf,foo):
slf.foo=foo

Argh. It looks unfinished. It’s asymmetrical, and not in a beautiful
way.

It’s shorter than the Ruby example, but it makes my eyes bleed. An
episode of The Apprentice is shorter than The Maltese Falcon, too, but
it’s a hell of a lot uglier.

. . . at least, for my taste.

When I want short code, I write it in Perl.


Chad P. [ CCD CopyWrite | http://ccd.apotheon.org ]

unix virus: If you’re using a unixlike OS, please forward
this to 20 others and erase your system partition.

Chad P. ha scritto:

It’s shorter than the Ruby example, but it makes my eyes bleed. An
episode of The Apprentice is shorter than The Maltese Falcon, too, but
it’s a hell of a lot uglier.

. . at least, for my taste.

When I want short code, I write it in Perl.

de gustibus non est disputandum

Jeff W. ha scritto:

make sure you understand this …

I find it humorous … and a bit retentive … but, to each their own.

j.

you’re absolutely right, but in my defense I can say that I did write
that becuase I feel the need to explicitly name self dumb. I find it ok
to write self.foo but naming the argument is just useless imho.

Chad P. wrote:

Argh. It looks unfinished. It’s asymmetrical, and not in a
de gustibus non est disputandum

Um. Okay?

We Germans say “Über Geschmäcker kann man streiten” - interestingly enough
it’s the negated translation of the Latin “You cannot argue about
likings”… :slight_smile:

robert

On Fri, Dec 23, 2005 at 12:17:50PM +0900, gabriele renzi wrote:

way.

It’s shorter than the Ruby example, but it makes my eyes bleed. An
episode of The Apprentice is shorter than The Maltese Falcon, too, but
it’s a hell of a lot uglier.

. . at least, for my taste.

When I want short code, I write it in Perl.

de gustibus non est disputandum

Um. Okay?


Chad P. [ CCD CopyWrite | http://ccd.apotheon.org ]

unix virus: If you’re using a unixlike OS, please forward
this to 20 others and erase your system partition.

On Friday 23 December 2005 09:40 am, Patrick H. wrote:

In matters of taste there can be no dispute.

Colloquially in English: you say potato, I say potato :slight_smile:

Is de gustibus non est disputandum Italian, Latin or something else?
I can think of many threads I’d like to use that phrase in.

SteveT

Steve L.

[email protected]

latin.

On 12/23/05, Steve L. [email protected] wrote:

the rescue:
Steve L.
http://www.troubleshooters.com
[email protected]


“Remember. Understand. Believe. Yield! → http://ruby-lang.org

Jeff W.

On 12/22/05, Chad P. [email protected] wrote:

On Fri, Dec 23, 2005 at 12:17:50PM +0900, gabriele renzi wrote:

Chad P. ha scritto:
de gustibus non est disputandum

Um. Okay?

Four years of high school (although that was sometime ago now) to the
rescue:

In matters of taste there can be no dispute.

Colloquially in English: you say potato, I say potato :slight_smile:

On 12/23/05, Steve L. [email protected] wrote:

On Friday 23 December 2005 09:40 am, Patrick H. wrote:

Four years of high school (although that was sometime ago now) to
the rescue:

Oops that was supposed to be four years of high school latin :slight_smile:

On Tuesday 27 December 2005 08:49 pm, Paul D. wrote:

Is de gustibus non est disputandum Italian, Latin or something else?
I can think of many threads I’d like to use that phrase in.

Quidquid latine dictum sit, altum viditur. [*]

E rubimus codimus

SteveT

Steve L.

[email protected]

Is de gustibus non est disputandum Italian, Latin or something else?
I can think of many threads I’d like to use that phrase in.

Quidquid latine dictum sit, altum viditur. [*]

SteveT

  • I don’t know Latin but my buddy Google does.

On Wed, Dec 28, 2005 at 02:51:35PM +0900, Steve L. wrote:

On Tuesday 27 December 2005 08:49 pm, Paul D. wrote:

Is de gustibus non est disputandum Italian, Latin or something else?
I can think of many threads I’d like to use that phrase in.

Quidquid latine dictum sit, altum viditur. [*]

E rubimus codimus

Carpe rubium.

Et tu, Ruby?

Okay, never mind. Forget I said anything. That was really bad.


Chad P. [ CCD CopyWrite | http://ccd.apotheon.org ]

This sig for rent: a Signify v1.14 production from

Chad P. wrote:

Carpe rubium.

Et tu, Ruby?

Okay, never mind. Forget I said anything. That was really bad.

Quondo Omni Flunkus Utor Ruby

(with apologies to Red Green fans :slight_smile: