proper use of classes

E

Eleanor McHugh

Hi --


At the same time, though, I'd say that object orientation per se
doesn't depend on polymorphism and inheritance. To me it's the
convergence back onto the sending-msgs-to-objects paradigm that's at
the heart of it (though I don't put that forth as a CS-ly correct
characterization, just my sense of it).

I like to think of Ruby as being the English of programming languages.
It's got a large and flexible vocabulary that makes it very powerful
to work with, but unlike Perl or Lisp or C it's also a very easy
language to get to grips with.

I'm particularly keen on the loose and pragmatic approach to OO. Being
able to open classes and objects at will makes it very easy to
specialise them for a specific project. And as for inheritance
hierarchies, there's much less pressure to build these rigid and
gargantuan frameworks than in certain mainstream languages.

As for the functional aspect, I tend to even forget I'm using a
functional style because message sending is so pervasive that chaining
higher-order functions is the obvious way to solve many problems.

Oh, and best of all Ruby's fun to code in :)


Ellie

Eleanor McHugh
Games With Brains
http://slides.games-with-brains.net
 
T

Todd Benson

Oh, and best of all Ruby's fun to code in :)

Right, as long as everyone remembers not to scuff their knees on the
playground sand jumping from the jungle gym :)

Todd
 
M

Matt Lawrence

I like to think of Ruby as being the English of programming languages. It's
got a large and flexible vocabulary that makes it very powerful to work with,
but unlike Perl or Lisp or C it's also a very easy language to get to grips
with.

English does not borrow from other languages. English follows other
languages into dark alleys, knocks them over, and rifles through their
pockets for loose vocabulary.

-- Matt
It's not what I know that counts.
It's what I can remember in time to use.
 
J

Juan Zanos

English does not borrow from other languages. English follows other =20=
languages into dark alleys, knocks them over, and rifles through =20
their pockets for loose vocabulary.

-- Matt
It's not what I know that counts.
It's what I can remember in time to use.

English, unlike other languages, is very consistent and =20
straightforward. For example, the plural of boot is boots and the =20
plural of foot is foots. Ok. Maybe I need a better example.

1100
 
R

Rick DeNatale

[Note: parts of this message were removed to make it a legal post.]

I like to think of Ruby as being the English of programming languages. It's

English does not borrow from other languages. English follows other
languages into dark alleys, knocks them over, and rifles through their
pockets for loose vocabulary.


Actually, I'd say quite the opposite, English vocabulary is the result of a
long history of the English language being raped by the Languages of
whatever happened to be the latest invaders. Those words were injected into
the language rather than being pick-pocketed.
 
G

Gary Wright

Actually, I'd say quite the opposite, English vocabulary is the
result of a
long history of the English language being raped by the Languages of
whatever happened to be the latest invaders. Those words were
injected into
the language rather than being pick-pocketed.


I'd say that English is more like the Borg. Resistance is futile.
You will be assimilated.

Gary Wright
 
P

Phlip

Juan said:
English, unlike other languages, is very consistent and
straightforward. For example, the plural of boot is boots and the
plural of foot is foots. Ok. Maybe I need a better example.

"Okay" is a real word. "OK" is an historical bacronym. (The published
dictionaries have this one wrong.) Okay means "emphatic yes" in Wolof, one of
the languages English... knocked over. "Banana" and "hippie" come from the same
source...
 
J

Julian Leviston

Why does this matter?

Sent from my iPhone

"Okay" is a real word. "OK" is an historical bacronym. (The published
dictionaries have this one wrong.) Okay means "emphatic yes" in
Wolof, one of
the languages English... knocked over. "Banana" and "hippie" come
from the same
source...
 
T

Tom Cloyd

Juan said:
English, unlike other languages, is very consistent and
straightforward. For example, the plural of boot is boots and the
plural of foot is foots. Ok. Maybe I need a better example.

1100
I propose that we allow 'foots'. to be a subclass of foot - for those of
us who secretly wish English had the lucidity of Spanish, or, if we dare
to dream, Ruby....

t.

--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
<< (e-mail address removed) >> (email)
<< TomCloyd.com >> (website)
<< sleightmind.wordpress.com >> (mental health weblog)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 

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

Forum statistics

Threads
473,780
Messages
2,569,609
Members
45,253
Latest member
BlytheFant

Latest Threads

Top