[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Ruby jargon and slang

Daniel Harple

2/7/2006 8:11:00 PM

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


8 Answers

Matthew Smillie

2/7/2006 8:31:00 PM

0


On Feb 7, 2006, at 20:10, Daniel Harple wrote:

> 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!.

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


Hal E. Fulton

2/8/2006 1:16:00 AM

0

Daniel Harple wrote:
> 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!.

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



szpak

2/8/2006 4:16:00 AM

0

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

2/8/2006 9:42:00 PM

0

Dna 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

2/8/2006 9:54:00 PM

0

On 2/8/06, David Vallner <david@vallner.net> wrote:> Dna 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.See the "Notation Conventions" section in the Preface. In my copy ofPickaxe 2 it's on page xxix.--R. Mark VolkmannPartner, Object Computing, Inc.

David Vallner

2/9/2006 12:59:00 AM

0

Dna Streda 08 Február 2006 22:53 Mark Volkmann napísal:
> On 2/8/06, David Vallner <david@vallner.net> wrote:
> > Dna 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.
>
> 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.

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

2/9/2006 1:08:00 AM

0


On Feb 8, 2006, at 7:59 PM, David Vallner wrote:

> Dna Streda 08 Február 2006 22:53 Mark Volkmann napísal:
>> On 2/8/06, David Vallner <david@vallner.net> wrote:
>>> Dna 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.
>>
>> 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.
>
> 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
>

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

David Vallner

2/9/2006 1:34:00 AM

0

Dna Štvrtok 09 Február 2006 02:07 Logan Capaldo napísal:
> On Feb 8, 2006, at 7:59 PM, David Vallner wrote:
> > Dna Streda 08 Február 2006 22:53 Mark Volkmann napísal:
> >> On 2/8/06, David Vallner <david@vallner.net> wrote:
> >>> Dna 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.
> >>
> >> 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.
> >
> > 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
>
> Does ri count as canonical? It comes with ruby correct? And it uses
> the '#' notation.

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