Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Ruby jargon and slang

7 views
Skip to first unread message

Eero Saynatkari

unread,
Feb 5, 2006, 10:10:12 PM2/5/06
to
On 2006.02.06 10:58, Hal Fulton wrote:
> I'm assembling a list of Ruby community "usages" and I want to make
> sure I haven't missed anything important.
>
> I have such things as: duck typing, threequal, spaceship operator,
> singleton method, singleton class, splat or unary unarray,
> multiple or parallel assignment, and (ehh) eigenclass.

'threequal' == ===? I call it the sort-of-matches-operator but
I assume that is just me.

> Not all usages are considered official or will necessarily be
> treated equally.
>
> Terms that are extremely common outside our community and are used
> identically can probably be omitted from the list.
>
> Anyone?
>
>
> Hal


E


zdennis

unread,
Feb 6, 2006, 4:36:37 AM2/6/06
to
Hal Fulton wrote:
> I'm assembling a list of Ruby community "usages" and I want to make
> sure I haven't missed anything important.
>
> I have such things as: duck typing, threequal, spaceship operator,
> singleton method, singleton class, splat or unary unarray,
> multiple or parallel assignment, and (ehh) eigenclass.
>
> Not all usages are considered official or will necessarily be
> treated equally.
>
> Terms that are extremely common outside our community and are used
> identically can probably be omitted from the list.
>
> Anyone?
>
>

um... the push operator <<

some folks call it the less-than-less-than thing, but that seems soo long.

Zach


Robert Klemme

unread,
Feb 6, 2006, 5:36:45 AM2/6/06
to
zdennis wrote:
> Hal Fulton wrote:
>> I'm assembling a list of Ruby community "usages" and I want to make
>> sure I haven't missed anything important.
>>
>> I have such things as: duck typing, threequal, spaceship operator,
>> singleton method, singleton class, splat or unary unarray,
>> multiple or parallel assignment, and (ehh) eigenclass.
>>
>> Not all usages are considered official or will necessarily be
>> treated equally.
>>
>> Terms that are extremely common outside our community and are used
>> identically can probably be omitted from the list.
>>
>> Anyone?
>>
>>
>
> um... the push operator <<

Isn't that the bit shift operator? :-)

> some folks call it the less-than-less-than thing, but that seems soo
> long.

robert

Hal Fulton

unread,
Feb 6, 2006, 6:49:42 AM2/6/06
to
zdennis wrote:
>
> um... the push operator <<
>
> some folks call it the less-than-less-than thing, but that seems soo long.

Noted. I usually call it the append operator.

Hal


Jeffrey Schwab

unread,
Feb 6, 2006, 8:53:51 AM2/6/06
to

In C++, it's often called the insertion operator. I have been thinking
of it as such in Ruby.

men...@rydia.net

unread,
Feb 6, 2006, 12:01:14 PM2/6/06
to
Quoting Hal Fulton <hal...@hypermetrics.com>:

> I'm assembling a list of Ruby community "usages" and I want to
> make sure I haven't missed anything important.
>
> I have such things as: duck typing, threequal, spaceship
> operator, singleton method, singleton class, splat or unary
> unarray, multiple or parallel assignment, and (ehh) eigenclass.

You've neglected chunky bacon.

-mental


Daniel Nugent

unread,
Feb 6, 2006, 4:51:40 PM2/6/06
to
Chunky Bacon isn't jargon, it's a battle cry.


--
-Dan Nugent


Dirk Meijer

unread,
Feb 6, 2006, 4:54:43 PM2/6/06
to
2006/2/6, Daniel Nugent <nug...@gmail.com>:

>
> Chunky Bacon isn't jargon, it's a battle cry.


should be in there anyway ;-)

James Britt

unread,
Feb 6, 2006, 5:06:10 PM2/6/06
to

What is it?

I mean, besides a shibboleth.

--
James Britt


Matthew Smillie

unread,
Feb 6, 2006, 7:22:55 PM2/6/06
to

So, if it operates like a duck...

Jeffrey Schwab

unread,
Feb 6, 2006, 8:39:15 PM2/6/06
to

Exactly.

I never understand why people think of duck typing as being unique to
dynamic languages. C++ has great support for static, generic
programming, and a lot of what Ruby does at run-time, C++ can do at
compile-time.

Of course, Ruby has plenty of advantages of its own. :)

Hal Fulton

unread,
Feb 6, 2006, 11:30:46 PM2/6/06
to

Nothing more, I'd guess.

"Shibboleth" is also a shibboleth, I guess. Rather
self-referential.


Hal


James Britt

unread,
Feb 6, 2006, 11:44:32 PM2/6/06
to
Hal Fulton wrote:

> James Britt wrote:
>>
>> What is it?
>>
>> I mean, besides a shibboleth.
>>
>
> Nothing more, I'd guess.
>
> "Shibboleth" is also a shibboleth, I guess. Rather
> self-referential.

Good catch!


--
James Britt

"Blanket statements are over-rated"


Martin DeMello

unread,
Feb 7, 2006, 4:57:52 AM2/7/06
to
Hal Fulton <hal...@hypermetrics.com> wrote:
>
> "Shibboleth" is also a shibboleth, I guess. Rather
> self-referential.

More etymology than self-reference - "a shibboleth" is simply a word
that fulfils the same role "shibboleth" did in its original context.

martin

Daniel Harple

unread,
Feb 7, 2006, 3:10:49 PM2/7/06
to
On Feb 6, 2006, at 2:58 AM, Hal Fulton wrote:

> I'm assembling a list of Ruby community "usages" and I want to make
> sure I haven't missed anything important.

Bang methods, like Array#reject!.

-- Daniel


Matthew Smillie

unread,
Feb 7, 2006, 3:31:00 PM2/7/06
to

Which reminds me, the #-notation for methods would make a good
inclusion if it's not already there.


Daniel Berger

unread,
Feb 7, 2006, 3:34:36 PM2/7/06
to
David Vallner wrote:
> Dňa Utorok 07 Február 2006 01:22 Matthew Smillie napísal:

>
>>So, if it operates like a duck...
>
>
> So, from duck typing, we've come to duck surgery? *shudder*

They don't call those doctors "quacks" for nothing.

Dan

Hal Fulton

unread,
Feb 7, 2006, 8:14:12 PM2/7/06
to
Logan Capaldo wrote:
> Everytime I see "shibboleth" all I can think of is HP Lovecraft.

Haha! No doubt HPL was influenced by real languages and words.

> ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn

If I may cut and paste... I saw a T-shirt recently like this:

WHICH PART OF
ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn
DON'T YOU UNDERSTAND?


And a similar one with Schroedinger's Equations...


Hal

Hal Fulton

unread,
Feb 7, 2006, 8:15:56 PM2/7/06
to

True. But I'm tired of adding stuff, so this one will probably
have to slip through the cracks.

As long as people know what bang means, it's obvious.


Hal

Mark Szpakowski

unread,
Feb 7, 2006, 11:16:06 PM2/7/06
to
Can someone point me to the page in the Pickaxe book where #-notation
is defined? I can't find it through the index.

David Vallner

unread,
Feb 8, 2006, 4:41:56 PM2/8/06
to
Dňa Streda 08 Február 2006 05:18 Mark Szpakowski napísal:

> Can someone point me to the page in the Pickaxe book where #-notation
> is defined? I can't find it through the index.

That notation is defined in Pickaxe? Now this I want to see.

David Vallner


Mark Volkmann

unread,
Feb 8, 2006, 4:53:49 PM2/8/06
to

See the "Notation Conventions" section in the Preface. In my copy of
Pickaxe 2 it's on page xxix.

--
R. Mark Volkmann
Partner, Object Computing, Inc.

David Vallner

unread,
Feb 8, 2006, 7:59:26 PM2/8/06
to
Dňa Streda 08 Február 2006 22:53 Mark Volkmann napísal:

See? Found it :P

I was a bit confused by you using the word "defined", I'd probably say
"described", since Pickaxe isn't the reference document for conventions like
this. Then again, it just might be, I can't recall how the notation (or its
use in Ruby) originated and whether it was somehow canonized.

David Vallner


Logan Capaldo

unread,
Feb 8, 2006, 8:07:55 PM2/8/06
to

Does ri count as canonical? It comes with ruby correct? And it uses
the '#' notation.

David Vallner

unread,
Feb 8, 2006, 8:34:06 PM2/8/06
to
Dňa Štvrtok 09 Február 2006 02:07 Logan Capaldo napísal:

Well, ri might just be following a convention that's been in use before the
tool existed. Not like I'd know. I was just wondering whether the notation is
just some extremely widespread bandwagon that sort of emerged and became
universally accepted, or if there was some "official" wossname that defined
the notation in the stricter meaning of "defined", Or c) It doesn't really
matter and I'm nitpicking because I should really go to sleep for a change.

Ah well. I'm not actually trying to (surprise!) make a point or anything...
However, if someone -does- know the history of the notation, it'd be
interesting trivia to know.

David Vallner


0 new messages