[#158545] ideas for an RCR: variable locality — Eric Mahurin <eric_mahurin@...>

I would like to start this thread with end goal being to create

17 messages 2005/10/01

[#158548] Gems is over engineered — "Trans" <transfire@...>

There has been a lot of talk on core about Gems and how it interrelates

23 messages 2005/10/01
[#158553] Re: Gems is over engineered — Austin Ziegler <halostatue@...> 2005/10/01

On 10/1/05, Trans <transfire@gmail.com> wrote:

[#158601] why can't Ruby load .gem files directly? — Joshua Haberman <joshua@...>

I've just been reading the recent threads about gems. I don't have

52 messages 2005/10/02
[#158605] Re: why can't Ruby load .gem files directly? — Ryan Leavengood <leavengood@...> 2005/10/02

On 10/1/05, Joshua Haberman <joshua@reverberate.org> wrote:

[#158608] Re: why can't Ruby load .gem files directly? — Joshua Haberman <joshua@...> 2005/10/02

On Oct 1, 2005, at 9:25 PM, Ryan Leavengood wrote:

[#158641] Re: why can't Ruby load .gem files directly? — Devin Mullins <twifkak@...> 2005/10/02

Joshua Haberman wrote:

[#158645] Re: why can't Ruby load .gem files directly? — Eivind Eklund <eeklund@...> 2005/10/02

On 10/2/05, Devin Mullins <twifkak@comcast.net> wrote:

[#158654] Re: why can't Ruby load .gem files directly? — Devin Mullins <twifkak@...> 2005/10/02

Eivind Eklund wrote:

[#158656] Re: why can't Ruby load .gem files directly? — Kevin Brown <blargity@...> 2005/10/02

On Sunday 02 October 2005 10:42, Devin Mullins wrote:

[#158667] Re: why can't Ruby load .gem files directly? — Devin Mullins <twifkak@...> 2005/10/02

Kevin Brown wrote:

[#158686] Re: why can't Ruby load .gem files directly? — Eivind Eklund <eeklund@...> 2005/10/02

On 10/2/05, Devin Mullins <twifkak@comcast.net> wrote:

[#158699] Re: why can't Ruby load .gem files directly? — Devin Mullins <twifkak@...> 2005/10/02

Eivind Eklund wrote:

[#158723] Re: why can't Ruby load .gem files directly? — Austin Ziegler <halostatue@...> 2005/10/02

On 10/2/05, Devin Mullins <twifkak@comcast.net> wrote:

[#158624] C++ equivs in Ruby — Pascal GUICHARD <pascal.guichard@...>

Hi everybody,

16 messages 2005/10/02

[#158720] state of blocking/nonblocking I/O — Joshua Haberman <joshua@...>

Here is my understanding about the current state of I/O in Ruby.

19 messages 2005/10/02

[#158738] Cannot subclass Class? — "itsme213" <itsme213@...>

irb(main):006:0> class MC < Class

16 messages 2005/10/03

[#158830] Type inference — Eivind Eklund <eeklund@...>

On 10/3/05, Tanner Burson <tanner.burson@gmail.com> wrote:

19 messages 2005/10/03

[#158886] : Lisp partial solution - meta-programming help — Louis J Scoras <louis.j.scoras@...>

Hi all;

18 messages 2005/10/03

[#158967] The definitive GUI for Ruby — "Eustaquio Rangel de Oliveira Jr." <eustaquiorangel@...>

-----BEGIN PGP SIGNED MESSAGE-----

28 messages 2005/10/04

[#159024] OFF Topics :: PC-laptop or Powerbook — Squeak Smalltalk <wallenberg@...>

Hi,

18 messages 2005/10/04

[#159093] Object Orientation — Krekna Mektek <krekna@...>

Hi again,

16 messages 2005/10/05

[#159102] Ruby 1.8.3 breaks Needle's logger? — Dido Sevilla <dido.sevilla@...>

I've been using Ruby and Needle to develop many applications, and in

16 messages 2005/10/05
[#159113] Re: Ruby 1.8.3 breaks Needle's logger? — Dick Davies <rasputnik@...> 2005/10/05

On 05/10/05, Dido Sevilla <dido.sevilla@gmail.com> wrote:

[#159141] Re: Ruby 1.8.3 breaks Needle's logger? — Jamis Buck <jamis@37signals.com> 2005/10/05

On Oct 5, 2005, at 2:49 AM, Dick Davies wrote:

[#159127] select! not present but reject! is — "Geert Fannes" <Geert.Fannes@...>

Hello, is there a reason why I can find the in-place mutator method

44 messages 2005/10/05
[#159211] Re: select! not present but reject! is — "Gene Tani" <gene.tani@...> 2005/10/05

Can you use Enumerable#partition ?

[#159251] Re: select! not present but reject! is — Jacob Fugal <lukfugl@...> 2005/10/05

On 10/5/05, Gene Tani <gene.tani@gmail.com> wrote:

[#159256] Re: select! not present but reject! is — "David A. Black" <dblack@...> 2005/10/05

Hi --

[#159304] Re: select! not present but reject! is — Yukihiro Matsumoto <matz@...> 2005/10/06

Hi,

[#159444] Re: select! not present but reject! is — Rob Rypka <rascal1182@...> 2005/10/06

On 10/6/05, Yukihiro Matsumoto <matz@ruby-lang.org> wrote:

[#159450] Re: select! not present but reject! is — "David A. Black" <dblack@...> 2005/10/06

Hi --

[#159457] Re: select! not present but reject! is — Jacob Fugal <lukfugl@...> 2005/10/07

On 10/6/05, David A. Black <dblack@wobblini.net> wrote:

[#159459] Re: select! not present but reject! is — "David A. Black" <dblack@...> 2005/10/07

Hi --

[#159475] Re: select! not present but reject! is — Rob Rypka <rascal1182@...> 2005/10/07

On 10/6/05, David A. Black <dblack@wobblini.net> wrote:

[#159501] Re: select! not present but reject! is — "David A. Black" <dblack@...> 2005/10/07

Hi --

[#159526] Re: select! not present but reject! is — Jacob Fugal <lukfugl@...> 2005/10/07

On 10/7/05, David A. Black <dblack@wobblini.net> wrote:

[#159568] Re: select! not present but reject! is — Mark Hubbart <discordantus@...> 2005/10/07

On 10/7/05, Jacob Fugal <lukfugl@gmail.com> wrote:

[#159571] Re: select! not present but reject! is — Rob Rypka <rascal1182@...> 2005/10/07

On 10/7/05, Mark Hubbart <discordantus@gmail.com> wrote:

[#159575] Re: select! not present but reject! is — "David A. Black" <dblack@...> 2005/10/07

Hi --

[#159600] Re: select! not present but reject! is — Devin Mullins <twifkak@...> 2005/10/08

David A. Black wrote:

[#159144] Vim/Ruby Configuration Files, 2005.10.05 — Doug Kearns <dougkearns@...>

G'day folks,

14 messages 2005/10/05

[#159220] One-liner removing duplicate lines — Damien Wyart <damien.wyart@...>

Hello,

39 messages 2005/10/05
[#159226] Re: One-liner removing duplicate lines — Ryan Leavengood <leavengood@...> 2005/10/05

On 10/5/05, Damien Wyart <damien.wyart@free.fr> wrote:

[#159266] Can Ruby pop like Lisp? — waterbowl@...

Is it possible to write a method in Ruby that acts like pop does in

16 messages 2005/10/06

[#159287] Can ruby replace c? — cmk128@...

Hi

28 messages 2005/10/06

[#159295] foo= ... the only exception to the implicit-self rule ? — "itsme213" <itsme213@...>

Sorry to ask this again, but...

22 messages 2005/10/06

[#159302] RubyConf video, audio, streams and recordings? — ES <ruby-ml@...>

Sadly, I cannot attend this year (I will send you pictures from my

11 messages 2005/10/06

[#159310] traits question — "itsme213" <itsme213@...>

How does one install traits 0.7?

14 messages 2005/10/06

[#159434] documentation & tutorials for net::ssh — bob <bob@...>

Hi

12 messages 2005/10/06

[#159456] Google Calculator command line tool — "m4dc4p" <jgbailey@...>

I whipped a quick script to send queries to Google and scrape results

13 messages 2005/10/07

[#159510] Text Image (#50) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

30 messages 2005/10/07

[#159520] Going to RubyConf? Please post to RubyConf2005Facebook — Curt Hibbs <curt.hibbs@...>

Francis Hwang had the bright idea, and it really cool to see all the faces

20 messages 2005/10/07

[#159547] Method added hook — "aurelianito" <aurelianocalvo@...>

Hi!

17 messages 2005/10/07

[#159548] EuRuKo, get together on Friday? — Kero <kero@...>

Hi!

12 messages 2005/10/07

[#159549] Code for title-casing (US) snail addresses? — "rpardee@..." <rpardee@...>

Hey All,

16 messages 2005/10/07

[#159624] Save the world from evil code crusade — "aurelianito" <aurelianocalvo@...>

Hello!

44 messages 2005/10/08
[#159626] Re: Save the world from evil code crusade — James Britt <james_b@...> 2005/10/08

aurelianito wrote:

[#159627] Re: Save the world from evil code crusade — Kevin Brown <blargity@...> 2005/10/08

On Saturday 08 October 2005 09:09, James Britt wrote:

[#159631] Re: Save the world from evil code crusade — "aurelianito" <aurelianocalvo@...> 2005/10/08

I want to be able to define different capabilities for different parts

[#159692] using lambda/Proc can prevent a lot of garbage collection — Eric Mahurin <eric_mahurin@...>

Does anybody else think it is a serious issue that a Proc holds

27 messages 2005/10/08
[#159717] Re: using lambda/Proc can prevent a lot of garbage collection — Kero <kero@...> 2005/10/09

> Does anybody else think it is a serious issue that a Proc holds

[#159735] Re: using lambda/Proc can prevent a lot of garbage collection — Eric Mahurin <eric_mahurin@...> 2005/10/09

--- Kero <kero@chello.single-dot.nl> wrote:

[#159738] Re: using lambda/Proc can prevent a lot of garbage collection — "David A. Black" <dblack@...> 2005/10/09

Hi --

[#159768] Re: using lambda/Proc can prevent a lot of garbage collection — Eric Hodel <drbrain@...7.net> 2005/10/09

On Oct 9, 2005, at 8:20 AM, David A. Black wrote:

[#159773] Re: using lambda/Proc can prevent a lot of garbage collection — Joel VanderWerf <vjoel@...> 2005/10/09

Eric Hodel wrote:

[#159745] indent for Ruby, to reformat it — "Phlip" <phlipcpp@...>

Rubies:

23 messages 2005/10/09

[#159839] How to overload Object's methods automagicaly? — "S.Z." <zbl@...>

I am playing with a Synchronized class that automates resource locking

12 messages 2005/10/10

[#159897] Sort pseudo-lists — pete boardman <pete.boardman@...>

Say I've got a string like this:

16 messages 2005/10/10

[#159900] verifying proper vim-ruby install — Mark Volkmann <r.mark.volkmann@...>

On 10/9/05, Jacob Quinn Shenker <jqshenker@gmail.com> wrote:

15 messages 2005/10/10
[#159912] Re: verifying proper vim-ruby install — Nikolai Weibull <mailing-lists.ruby-talk@...> 2005/10/11

Mark Volkmann wrote:

[#159903] pre-Ruby-Conf dinner Thursday night — "Francis Hwang" <sera@...>

Hey everyone,

31 messages 2005/10/10

[#159916] Facebook... only 154 to go? — Hal Fulton <hal9000@...>

I added my own pic just now. You should, too...

16 messages 2005/10/11

[#159952] event based model - best way to implement? — snacktime <snacktime@...>

I am currently using perl's POE to communicate with the asterisk manager

11 messages 2005/10/11

[#159953] my mother wants to code? — Francois Paul <francois@...>

Hi,

35 messages 2005/10/11

[#160039] Default argument values for blocks — Daniel Schierbeck <daniel.schierbeck@...>

Is there a reason why I can't do this?

104 messages 2005/10/11
[#160045] Re: Default argument values for blocks — Yukihiro Matsumoto <matz@...> 2005/10/11

Hi,

[#160046] Re: Default argument values for blocks — Yukihiro Matsumoto <matz@...> 2005/10/11

Hi,

[#160047] Re: Default argument values for blocks — "Ara.T.Howard" <Ara.T.Howard@...> 2005/10/11

On Wed, 12 Oct 2005, Yukihiro Matsumoto wrote:

[#160118] Re: Default argument values for blocks — Yukihiro Matsumoto <matz@...> 2005/10/12

Hi,

[#160124] Re: Default argument values for blocks — Eric Mahurin <eric_mahurin@...> 2005/10/12

--- Yukihiro Matsumoto <matz@ruby-lang.org> wrote:

[#160166] Re: Default argument values for blocks — "Trans" <transfire@...> 2005/10/12

[#160172] Re: Default argument values for blocks — Thomas <sanobast-2005a@...> 2005/10/12

> What of &?

[#160187] Re: Default argument values for blocks — Christophe Grandsire <christophe.grandsire@...> 2005/10/12

Selon Thomas <sanobast-2005a@yahoo.de>:

[#160213] Re: Default argument values for blocks — Yukihiro Matsumoto <matz@...> 2005/10/12

Hi,

[#160338] Re: Default argument values for blocks — "Phil Tomson" <philtomson@...> 2005/10/13

David A. Black wrote:

[#160349] Re: Default argument values for blocks — Caleb Clausen <vikkous@...> 2005/10/13

Ok, this has been bugging me ever since the last time this issue came

[#160376] Re: Default argument values for blocks — nobuyoshi nakada <nobuyoshi.nakada@...> 2005/10/13

Hi,

[#160395] Re: Default argument values for blocks — Eric Mahurin <eric_mahurin@...> 2005/10/13

--- nobuyoshi nakada <nobuyoshi.nakada@ge.com> wrote:

[#160399] Re: Default argument values for blocks — Christophe Grandsire <christophe.grandsire@...> 2005/10/13

Selon Eric Mahurin <eric_mahurin@yahoo.com>:

[#160422] Re: Default argument values for blocks — Austin Ziegler <halostatue@...> 2005/10/13

On 10/13/05, Christophe Grandsire <christophe.grandsire@free.fr> wrote:

[#160458] Re: Default argument values for blocks — "Phil Tomson" <philtomson@...> 2005/10/13

[#160214] ruby in the government - 1.6.x -> 1.8.x woes — "Ara.T.Howard" <Ara.T.Howard@...>

22 messages 2005/10/12
[#160229] Re: ruby in the government - 1.6.x -> 1.8.x woes — mathew <meta@...> 2005/10/12

Ara.T.Howard wrote:

[#160238] Removing blank lines — "basi" <basi_lio@...>

Hello,

26 messages 2005/10/12
[#160241] Re: Removing blank lines — Esteban Manchado Vel痙quez <zoso@...> 2005/10/12

Hello Basi,

[#160353] Problem with IRB and some sample code... — Unnsse Khan <untz@...>

:-) Hello again,

16 messages 2005/10/13
[#160394] Re: Problem with IRB and some sample code... — James Edward Gray II <james@...> 2005/10/13

On Oct 13, 2005, at 2:01 AM, Unnsse Khan wrote:

[#160381] Text Image (#50) — Ruby Quiz <james@...>

I just love it when a totally crazy idea of mine blossoms into a popular quiz.

30 messages 2005/10/13
[#160403] Re: [SUMMARY] Text Image (#50) — "daz" <dooby@...10.karoo.co.uk> 2005/10/13

[#160525] Re: [SUMMARY] Text Image (#50) — James Britt <james_b@...> 2005/10/13

daz wrote:

[#160532] Re: [SUMMARY] Text Image (#50) — James Edward Gray II <james@...> 2005/10/14

On Oct 13, 2005, at 6:39 PM, James Britt wrote:

[#160534] Re: [SUMMARY] Text Image (#50) — James Britt <james_b@...> 2005/10/14

James Edward Gray II wrote:

[#160535] Why Write Ruby Docs? (was Re: [SUMMARY] Text Image (#50)) — James Edward Gray II <james@...> 2005/10/14

On Oct 13, 2005, at 7:27 PM, James Britt wrote:

[#160556] Re: Why Write Ruby Docs? (was Re: [SUMMARY] Text Image (#50)) — James Edward Gray II <james@...> 2005/10/14

I'm sorry, but the more I think about this, the more it bugs me...

[#160561] Re: Why Write Ruby Docs? (was Re: [SUMMARY] Text Image (#50)) — Kev Jackson <kevin.jackson@...> 2005/10/14

[#160456] InstantRails: Configure/database(via phpmyadmin) not working — "basi" <basi_lio@...>

Windows XP SP2

12 messages 2005/10/13

[#160509] Challenging Project ... Need a deep guru to provide enlightenment. — Jeff Wood <jeff.darklight@...>

I think I've got a very challenging project on my hands but here's I'm

27 messages 2005/10/13
[#160524] Re: Challenging Project ... Need a deep guru to provide enlightenment. — "Ara.T.Howard" <Ara.T.Howard@...> 2005/10/13

On Fri, 14 Oct 2005, Jeff Wood wrote:

[#160527] Re: Challenging Project ... Need a deep guru to provide enlightenment. — "Ara.T.Howard" <Ara.T.Howard@...> 2005/10/13

On Fri, 14 Oct 2005, Ara.T.Howard wrote:

[#160529] Re: Challenging Project ... Need a deep guru to provide enlightenment. — Jeff Wood <jeff.darklight@...> 2005/10/13

These are a good start, but what I'm really trying to do is come up with a

[#160563] Re: Challenging Project ... Need a deep guru to provide enlightenment. — ES <ruby-ml@...> 2005/10/14

Jeff Wood wrote:

[#160582] Re: Challenging Project ... Need a deep guru to provide enlightenment. — Jeff Wood <jeff.darklight@...> 2005/10/14

Actually I wrote a new chunk of code based on Ara's snippet that for direct

[#160664] Factory function like Array() for your own classes — "Sean O'Halpin" <sean.ohalpin@...>

Hi,

13 messages 2005/10/15

[#160697] How to get non-unique elements from an array? — "Sam Kong" <sam.s.kong@...>

Hello!

65 messages 2005/10/15
[#160944] Re: How to get non-unique elements from an array? — "Sam Kong" <sam.s.kong@...> 2005/10/17

Hi!

[#160953] Re: How to get non-unique elements from an array? — "pauldacus@..." <pauldacus@...> 2005/10/17

That is a good one.

[#160968] Re: How to get non-unique elements from an array? — Ryan Leavengood <leavengood@...> 2005/10/17

On 10/17/05, pauldacus@gmail.com <pauldacus@gmail.com> wrote:

[#161007] Re: How to get non-unique elements from an array? — "Sam Kong" <sam.s.kong@...> 2005/10/18

I must confess that I love this group...:-)

[#161119] Re: How to get non-unique elements from an array? — Ryan Leavengood <leavengood@...> 2005/10/18

On 10/17/05, Sam Kong <sam.s.kong@gmail.com> wrote:

[#161135] Re: How to get non-unique elements from an array? — "Ara.T.Howard" <Ara.T.Howard@...> 2005/10/18

On Wed, 19 Oct 2005, Ryan Leavengood wrote:

[#160959] Re: How to get non-unique elements from an array? — Mark Van Holstyn <mvette13@...> 2005/10/17

Hey Sam,

[#160699] Ruby projects — "Me" <narf968@...>

I keep a list of projects I thought would be fun to work on some day

14 messages 2005/10/15

[#160704] Help! define_method leaking procs... — Jamis Buck <jamis@37signals.com>

A plea for help, here... The rails core team is hacking like mad this

31 messages 2005/10/15
[#160710] Re: Help! define_method leaking procs... — Ryan Davis <ryand-ruby@...> 2005/10/15

[#160713] Re: Help! define_method leaking procs... — Eric Mahurin <eric_mahurin@...> 2005/10/15

--- Ryan Davis <ryand-ruby@zenspider.com> wrote:

[#160717] Re: Help! define_method leaking procs... — ES <ruby-ml@...> 2005/10/15

Eric Mahurin wrote:

[#160719] Re: Help! define_method leaking procs... — Eric Mahurin <eric_mahurin@...> 2005/10/15

--- ES <ruby-ml@magical-cat.org> wrote:

[#160723] Re: Help! define_method leaking procs... — Yohanes Santoso <ysantoso-rubytalk@...> 2005/10/16

Eric Mahurin <eric_mahurin@yahoo.com> writes:

[#160728] Re: Help! define_method leaking procs... — Eric Mahurin <eric_mahurin@...> 2005/10/16

--- Yohanes Santoso <ysantoso-rubytalk@dessyku.is-a-geek.org>

[#160729] Re: Help! define_method leaking procs... — Yohanes Santoso <ysantoso-rubytalk@...> 2005/10/16

Eric Mahurin <eric_mahurin@yahoo.com> writes:

[#160730] Re: Help! define_method leaking procs... — Eric Mahurin <eric_mahurin@...> 2005/10/16

--- Yohanes Santoso <ysantoso-rubytalk@dessyku.is-a-geek.org>

[#160709] Anonymous methods, blocks etc. (Cont. 'default block params') — ES <ruby-ml@...>

Listening in on the Roundtable (thanks to the brave recording crew and

79 messages 2005/10/15
[#161077] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — "Sean O'Halpin" <sean.ohalpin@...> 2005/10/18

On 10/15/05, ES <ruby-ml@magical-cat.org> wrote:

[#161085] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — Austin Ziegler <halostatue@...> 2005/10/18

On 10/18/05, Sean O'Halpin <sean.ohalpin@gmail.com> wrote:

[#161101] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — "Trans" <transfire@...> 2005/10/18

[#161184] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — Eric Mahurin <eric_mahurin@...> 2005/10/18

--- Trans <transfire@gmail.com> wrote:

[#161211] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — "Sean O'Halpin" <sean.ohalpin@...> 2005/10/18

On 10/18/05, Eric Mahurin <eric_mahurin@yahoo.com> wrote:

[#161263] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — Austin Ziegler <halostatue@...> 2005/10/19

On 10/18/05, Sean O'Halpin <sean.ohalpin@gmail.com> wrote:

[#161269] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — "Trans" <transfire@...> 2005/10/19

[#161295] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — Austin Ziegler <halostatue@...> 2005/10/19

On 10/18/05, Trans <transfire@gmail.com> wrote:

[#161396] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — "Trans" <transfire@...> 2005/10/19

[#161405] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — Austin Ziegler <halostatue@...> 2005/10/19

On 10/19/05, Trans <transfire@gmail.com> wrote:

[#161487] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — "Trans" <transfire@...> 2005/10/19

[#163525] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — Zach Dennis <zdennis@...> 2005/10/31

Austin Ziegler wrote:

[#163530] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — "Trans" <transfire@...> 2005/10/31

[#163533] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — Zach Dennis <zdennis@...> 2005/10/31

Trans wrote:

[#163570] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — Yukihiro Matsumoto <matz@...> 2005/11/01

Hi,

[#163576] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — zdennis <zdennis@...> 2005/11/01

Yukihiro Matsumoto wrote:

[#163614] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — Gavin Kistner <gavin@...> 2005/11/01

On Oct 31, 2005, at 9:18 PM, zdennis wrote:

[#163630] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — "Trans" <transfire@...> 2005/11/01

This is abit to the side, but maybe it would shed light on the

[#163648] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — gwtmp01@... 2005/11/01

[#163682] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — "Trans" <transfire@...> 2005/11/02

Hi--

[#163693] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — gwtmp01@... 2005/11/02

[#163754] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — "Trans" <transfire@...> 2005/11/02

[#163763] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — gwtmp01@... 2005/11/02

[#163776] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — "Trans" <transfire@...> 2005/11/02

[#163783] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — mental@... 2005/11/02

Quoting Trans <transfire@gmail.com>:

[#163817] Re: Anonymous methods, blocks etc. (Cont. 'default block params') — gwtmp01@... 2005/11/02

[#160724] ANN: ZenTest 3.4.0 Released — Ryan Davis <ryand-ruby@...>

ZenTest version 2.4.0 has been released!

11 messages 2005/10/16

[#160810] Editing in Ruby — "Shreyas" <sravi2k4@...>

Hi all --

12 messages 2005/10/17

[#160838] Ruby for Python/OO developer — "Achim Domma (SyynX Solutions GmbH)" <achim.domma@...>

Hi,

17 messages 2005/10/17

[#160870] declaratively caching results of a method — Brian Buckley <briankbuckley@...>

Hello

24 messages 2005/10/17
[#160874] Re: declaratively caching results of a method — "Sean O'Halpin" <sean.ohalpin@...> 2005/10/17

On 10/17/05, Brian Buckley <briankbuckley@gmail.com> wrote:

[#160927] Re: declaratively caching results of a method — Brian Buckley <briankbuckley@...> 2005/10/17

> You could check out Daniel Berger's memoize (based on Nobu Nokada's

[#160881] Roxy 0.1 - Remote Proxy Objects w/ type & method signature impersonation and w/ remote block yields. — Jeff Wood <jeff.darklight@...>

Hey folks.

8 messages 2005/10/17

[#160934] gem server horked? — Jeff Wood <jeff.darklight@...>

This morning seems the gem server is having a bit of a fit ... getting

12 messages 2005/10/17
[#160940] Re: gem server horked? — Erik Veenstra <pan@...> 2005/10/17

> > This morning seems the gem server is having a bit of a fit

[#160947] Re: gem server horked? — Jeff Wood <jeff.darklight@...> 2005/10/17

True, my view wasn't geographically sensitive.

[#160957] Re: gem server horked? — Jeff Wood <jeff.darklight@...> 2005/10/17

Has anybody that's part of that project caught this yet ??? I'm surprised

[#160989] A couple of questions/statements from a Ruby neohacker — Dave Bettin <me@...>

I started my programming career off with PHP and ColdFusion. I loved the

17 messages 2005/10/17

[#161043] Unit testing an each function — Peter Hickman <peter@...>

I am testing a new class I have written that has an each method, how do

37 messages 2005/10/18
[#161061] Re: Unit testing an each function — "Kevin Ballard" <kballard@...> 2005/10/18

That sounds fine to me. What's wrong with that method?

[#161064] Re: Unit testing an each function — Peter Hickman <peter@...> 2005/10/18

Kevin Ballard wrote:

[#161090] Re: Unit testing an each function — "Kevin Ballard" <kballard@...> 2005/10/18

Peter Hickman wrote:

[#161098] Re: Unit testing an each function — Peter Hickman <peter@...> 2005/10/18

Kevin Ballard wrote:

[#161116] Re: Unit testing an each function — "Kevin Ballard" <kballard@...> 2005/10/18

[#161122] Re: Unit testing an each function — "Kevin Ballard" <kballard@...> 2005/10/18

[#161128] Re: Unit testing an each function — "Kevin Ballard" <kballard@...> 2005/10/18

class EnumerableProxy < Object

[#161131] Re: Unit testing an each function — Peter Hickman <peter@...> 2005/10/18

Thanks for that, quite an education in that code.

[#161152] Re: Unit testing an each function — "Kevin Ballard" <kballard@...> 2005/10/18

Ok, here's a new version. It now generalizes the wrapping, so it's

[#161205] Re: Unit testing an each function — Ryan Leavengood <leavengood@...> 2005/10/18

On 10/18/05, Kevin Ballard <kballard@gmail.com> wrote:

[#161226] Re: Unit testing an each function — "Kevin Ballard" <kballard@...> 2005/10/18

Ryan Leavengood wrote:

[#161229] Re: Unit testing an each function — "Kevin Ballard" <kballard@...> 2005/10/18

[#161239] Re: Unit testing an each function — James Edward Gray II <james@...> 2005/10/18

On Oct 18, 2005, at 5:41 PM, Kevin Ballard wrote:

[#161065] Ruby and Eclipse — "Carl Asman" <carl.asman@...>

I wanted to be a unfaithful to my emacs and try the Ruby plugin for

14 messages 2005/10/18

[#161176] The Ruby Way to build an object unless nil? — Peter Fitzgibbons <peter.fitzgibbons@...>

Hello all,

17 messages 2005/10/18

[#161230] Killing Threads & Processes on Windows — x1 <caldridge@...>

x = Thread.new { system("c:/program files/internet explorer/iexplore.exe") }

16 messages 2005/10/18

[#161245] Seeking Contributions for O'Reilly's Ruby Cookbook — "Leonard Richardson" <leonard.richardson@...>

Hello, all,

22 messages 2005/10/18
[#161260] Re: Seeking Contributions for O'Reilly's Ruby Cookbook — "luke" <l.d.u.n.c.a.l.f.e@... (dot)> 2005/10/19

i sometimes farm this site for ideas. i think the contributions are

[#161294] Re: Seeking Contributions for O'Reilly's Ruby Cookbook — "Gavin Sinclair" <gsinclair@...> 2005/10/19

[#161301] Re: Seeking Contributions for O'Reilly's Ruby Cookbook — "David A. Black" <dblack@...> 2005/10/19

Hi --

[#161639] Re: Seeking Contributions for O'Reilly's Ruby Cookbook — "Gavin Sinclair" <gsinclair@...> 2005/10/20

David A. Black wrote:

[#161650] Re: Seeking Contributions for O'Reilly's Ruby Cookbook — Peter Hickman <peter@...> 2005/10/20

Well we could start with a couple of chapters for ideas

[#161251] [RCR] Cut-based AOP — "Trans" <transfire@...>

This is to "officially" announce an RCR that I posted to RCR archive

108 messages 2005/10/18
[#161594] Re: [ANN] [RCR] Cut-based AOP — Yukihiro Matsumoto <matz@...> 2005/10/20

Hi,

[#161619] Re: [ANN] [RCR] Cut-based AOP — Alexandru Popescu <the.mindstorm.mailinglist@...> 2005/10/20

Hi!

[#162342] Re: Cut-based AOP — "Trans" <transfire@...> 2005/10/24

[#197129] Re: Cut-based AOP — "Ruby Newbie" <rubynewbie@...> 2006/06/14

Curious about AOP in Ruby, I've downloaded the Cut patch for 1.8.3,

[#197145] Re: Cut-based AOP — "Austin Ziegler" <halostatue@...> 2006/06/14

On 6/13/06, Ruby Newbie <rubynewbie@gmail.com> wrote:

[#197236] Re: Cut-based AOP — transfire@... 2006/06/14

[#197239] Re: Cut-based AOP — "Francis Cianfrocca" <garbagecat10@...> 2006/06/14

>>>Well, saying that is sort-of like programming Turbo Pascal in the 80's

[#197248] Re: Cut-based AOP — transfire@... 2006/06/14

[#161262] How to hire a rubyist? — "jfry" <jeff.fry@...>

Hey there,

15 messages 2005/10/19

[#161329] Byte order reading on windows versus unix in ruby — Robert Evans <robert.evans@...>

I have written some code that reads bytes from a file in bigendian

13 messages 2005/10/19

[#161351] attaching code to run on regular expression match — Eyal Oren <eyal.oren@...>

Hi,

12 messages 2005/10/19

[#161378] Array.sort when it's items are String inheritors with redefined <=> works like if not redefined — MiG <mig@1984.cz>

Hello,

9 messages 2005/10/19

[#161449] Method annotation and anonymous functions — stevetuckner <stevetuckner@...>

I want to start a discussion about two things that Matz talked about at

35 messages 2005/10/19
[#161545] Re: Method annotation and anonymous functions — Yukihiro Matsumoto <matz@...> 2005/10/19

Hi,

[#161550] Re: Method annotation and anonymous functions — Jeff Wood <jeff.darklight@...> 2005/10/19

Most languages define some token that specifically states method attribute...

[#161555] Re: Method annotation and anonymous functions — "David A. Black" <dblack@...> 2005/10/20

Hi --

[#161556] Re: Method annotation and anonymous functions — Jeff Wood <jeff.darklight@...> 2005/10/20

Yes it would, but I don't see another way to do attribution of methods

[#161557] Re: Method annotation and anonymous functions — "Trans" <transfire@...> 2005/10/20

[#161450] Functional with Ruby — "Andreas Semt" <Andreas.Semt@...>

Hello list,

30 messages 2005/10/19

[#161464] Can't type {, }, [ or ] in irb — "rohde" <rohdester@...>

Hi,

13 messages 2005/10/19
[#161497] Re: Can't type {, }, [ or ] in irb — Austin Ziegler <halostatue@...> 2005/10/19

On 10/19/05, rohde <rohdester@gmail.com> wrote:

[#161535] Re: Can't type {, }, [ or ] in irb — "rohde" <rohdester@...> 2005/10/19

Yes, I'm on Windows XP and used the installer, as well as a non-US

[#161469] Rails 1.0: Release Candidate 2 — David Heinemeier Hansson <david.heinemeier@...>

The release of 1.0 is near upon us! It has been a long time in the

13 messages 2005/10/19
[#161493] Re: Rails 1.0: Release Candidate 2 — Caleb Tennis <caleb@...> 2005/10/19

> (The main gem server is pretty over-worked, you may want to do gem

[#161496] Re: Rails 1.0: Release Candidate 2 — Chad Fowler <chadfowler@...> 2005/10/19

On 10/19/05, Caleb Tennis <caleb@aei-tech.com> wrote:

[#161527] DRb Basics — James Edward Gray II <james@...>

I'm finally getting around to playing with DRb and I have some

20 messages 2005/10/19

[#161564] Ruby on Rails version of osCommerce in PHP? — petermichaux@...

Hi,

29 messages 2005/10/20
[#161786] Re: Ruby on Rails version of osCommerce in PHP? — petermichaux@... 2005/10/21

Anyone interested in joining a new open source project to write this? I

[#162294] Re: Ruby on Rails version of osCommerce in PHP? — Corey Lawson <corey.ssf.lawson@...> 2005/10/24

Yes. I'd like to help with the database part at least (to make it non-MySQL

[#162305] Re: Ruby on Rails version of osCommerce in PHP? — Douglas Livingstone <rampant@...> 2005/10/24

2005/10/24, Corey Lawson <corey.ssf.lawson@gmail.com>:

[#162530] Re: Ruby on Rails version of osCommerce in PHP? — Corey Lawson <corey.ssf.lawson@...> 2005/10/25

No. The OpenCommerce database schema isn't very Rails-friendly. Some people

[#162538] Re: Ruby on Rails version of osCommerce in PHP? — petermichaux@... 2005/10/25

[#162608] Re: Ruby on Rails version of osCommerce in PHP? — Corey Lawson <corey.ssf.lawson@...> 2005/10/25

table names...PK field names, but that could be configured around with AR, =

[#162613] Re: Ruby on Rails version of osCommerce in PHP? — "Paul" <paul.vaillant@...> 2005/10/25

Per what a number of others have discussed, auditing/triggers are

[#162787] Re: Ruby on Rails version of osCommerce in PHP? — petermichaux@... 2005/10/26

Here is David Heinemeier Hanson's thoughts about why it is best to keep

[#162798] Re: Ruby on Rails version of osCommerce in PHP? — Austin Ziegler <halostatue@...> 2005/10/26

On 10/26/05, petermichaux@yahoo.com <petermichaux@yahoo.com> wrote:

[#161691] Removing a class for good from ObjectSpace — Florian Weber <csshsh@...>

Hi!

11 messages 2005/10/20

[#161715] New Language — Jim Freeze <jim@...>

I think I am going to start a new language, just so

26 messages 2005/10/20
[#161739] Re: [OT] New Language — Martin DeMello <martindemello@...> 2005/10/20

Ryan Leavengood <leavengood@gmail.com> wrote:

[#161745] Re: [OT] New Language — Tom Copeland <tom@...> 2005/10/20

On Fri, 2005-10-21 at 06:06 +0900, Martin DeMello wrote:

[#161746] Re: [OT] New Language — Brian Mitchell <binary42@...> 2005/10/20

On 10/20/05, Tom Copeland <tom@infoether.com> wrote:

[#161773] Ferret 0.1.0 (Port of Java Lucene) released — David Balmain <dbalmain.ml@...>

Hi Folks,

25 messages 2005/10/21

[#161790] Madeleine, SQLite and multi-platform issues (in ruby :-) — "Assaph Mehr" <assaph@...>

Hi list,

19 messages 2005/10/21
[#161791] Re: Madeleine, SQLite and multi-platform issues (in ruby :-) — Ezra Zygmuntowicz <ezra@...> 2005/10/21

What about using a pure ruby solution like KirbyBase?

[#161808] Re: Madeleine, SQLite and multi-platform issues (in ruby :-) — "Assaph Mehr" <assaph@...> 2005/10/21

[#161792] A comparison by example of keyword argument styles — Brian Mitchell <binary42@...>

Hello fellow rubyists,

73 messages 2005/10/21
[#161805] Re: A comparison by example of keyword argument styles — Daniel Schierbeck <daniel.schierbeck@...> 2005/10/21

I still haven't given up on my own style :)

[#162159] Re: A comparison by example of keyword argument styles — Daniel Schierbeck <daniel.schierbeck@...> 2005/10/23

This is just to get the discussion focused. With named arguments, I'm

[#162182] Re: A comparison by example of keyword argument styles — Eric Mahurin <eric_mahurin@...> 2005/10/23

--- Daniel Schierbeck <daniel.schierbeck@gmail.com> wrote:

[#162199] Re: A comparison by example of keyword argument styles — Yukihiro Matsumoto <matz@...> 2005/10/23

Hi,

[#162299] Re: A comparison by example of keyword argument styles — Eric Mahurin <eric_mahurin@...> 2005/10/24

--- Yukihiro Matsumoto <matz@ruby-lang.org> wrote:

[#162331] Re: A comparison by example of keyword argument styles — Louis J Scoras <louis.j.scoras@...> 2005/10/24

Right, so this is probably a really dumb idea, but I was just having a

[#161848] Re: A comparison by example of keyword argument styles — "Berger, Daniel" <Daniel.Berger@...>

> -----Original Message-----

17 messages 2005/10/21

[#161917] array in hash... argh!! — Marco <z@...>

hello all.

17 messages 2005/10/21

[#161947] Rubyists into Lojban? — rubyhacker@...

I don't wish to wander OT, but as I have been tinkering

14 messages 2005/10/21

[#162074] combination sums of several arrays — David Vincelli <micologist@...>

I'm writing a little BlackJack program for fun and I'm at the point

12 messages 2005/10/23

[#162178] Why is Ruby a favorite among the Agile set? — Ed Howland <ed.howland@...>

Hi,

15 messages 2005/10/23

[#162221] I want my MOM — swille <sillewille@...>

Err.. :) Can anyone tell me if there's a MOM for Ruby? Anything like

17 messages 2005/10/24

[#162258] can we add a tag like this to all the mail at the ruby talk mail server(s)? — Peter Barry <pbarry@...>

Guys & Gals ,

17 messages 2005/10/24
[#162306] Re: [Ruby-Talk] can we add a tag like this to all the mail at the ruby talk mail server(s)? — Yohanes Santoso <ysantoso-rubytalk@...> 2005/10/24

What is needed here is a change on how we should look at our email

[#162486] Re: [Ruby-Talk] can we add a tag like this to all the mail at the ruby talk mail server(s)? — Michal Suchanek <hramrach@...> 2005/10/25

On 10/24/05, Yohanes Santoso <ysantoso-rubytalk@dessyku.is-a-geek.org> wrote:> What is needed here is a change on how we should look at our email> addresses.>> Do you give your home phone number to a client? Do you give your> business phone number to your parents? If not, then why should you> give your personal email address to a client and your business email> address to your parents?>> Let's expand this further. Why should you be subscribing to a mailing> list with your personal email address? Why should you be the one doing> the routing of incoming emails? And, worse, asking the originator of> the email to, say, prefix the subject.>> Email addresses are much cheaper than phone number. For each> occassion, you can afford to give out new email address. For example,> I use a different email address for ruby-talk mailing list than the> email address I hand out to friends, and to co-workers, and to my> parents.>> This way, I'm not doing the routing of incoming emails; they do by> sending emails to the email address I gave them, their emails will> land on the mailboxes I want without me doing no further configuration> changes.>> I feel sad that email addresses in this age of cyberspace are still> treated as if it is as expensive as a phone number. They are cheap,> dirt cheap.>> Imagine this: work@yourname.yourdomain, friend@yourname.yourdomain,> ruby-talk@yourname.yourdomain, newegg@yourname.yourdomain.>> If your organisation is still in the backwater, giving you only one> email address, instead of a sub-domain, that's OK. That's just for> work, right?>> OTOH, for your personal life, you can get a subdomain for free from> various dyndns providers, and start churning out email addresses.>This is all nice. And I also try to separate the work address and theother address.But even if I use a freemail, I get only one address for personal use.They explicitly disallow registering more (because I could use morespace then). And dealing with several different freemails is terrible.Dyndyns does not work for me. It is only a technical issue to get itworking (recompiling the client for mips or whatever) but there isstill no place where I could receive the emails at home.First the computers eat energy when they are running all the time. Itis waste of electricity and money.Second the computers tend to break. I would probably get much morebounces than with a freemail.

[#162270] How to find all the subclasses of a class? — Horacio Sanson <hsanson@...>

11 messages 2005/10/24

[#162289] WhyRuby? repository has moved to ruby-doc.org — Curt Hibbs <curt.hibbs@...>

WhyRuby? was a project on RubyForge that I started to collect advocacy

12 messages 2005/10/24

[#162372] Oldest Ruby hacker? — "Chris McMahon" <christopher.mcmahon@...>

15 messages 2005/10/24
[#162971] Re: Oldest Ruby hacker? — "Charles Roper" <charles.roper@...> 2005/10/27

Chris McMahon wrote:

[#162393] What's your Ruby Number? (self.to_i) — Hal Fulton <hal9000@...>

I offer this in the spirit of the old "purity test" and the

66 messages 2005/10/25
[#162400] Re: What's your Ruby Number? (self.to_i) — James Edward Gray II <james@...> 2005/10/25

On Oct 24, 2005, at 9:20 PM, Hal Fulton wrote:

[#162520] Re: What's your Ruby Number? (self.to_i) — mathew <meta@...> 2005/10/25

Hal Fulton wrote:

[#162619] Re: What's your Ruby Number? (self.to_i) — rubyhacker@... 2005/10/25

mathew wrote:

[#162627] Re: What's your Ruby Number? (self.to_i) — Jim Freeze <jim@...> 2005/10/25

On 10/25/05, rubyhacker@gmail.com <rubyhacker@gmail.com> wrote:

[#162631] Re: What's your Ruby Number? (self.to_i) — Hal Fulton <hal9000@...> 2005/10/25

Jim Freeze wrote:

[#162637] Re: What's your Ruby Number? (self.to_i) — "David A. Black" <dblack@...> 2005/10/26

Hi --

[#162399] RCR: Array#to_h — "Shannon Fang" <xrfang@...>

Hi there,

19 messages 2005/10/25

[#162456] ruby gives different answer for checksum of files on windows and FreeBSD? — Ralph Smith <ralph@...>

11 messages 2005/10/25

[#162507] Comparing Classes with Case ? — "Warren Seltzer" <warrens@...>

The following failure surprised me:

19 messages 2005/10/25

[#162600] Re: narray and the stdlib — ptkwt@... (Phil Tomson)

In article <dcedf5e20510250919v45bdfdc6iceb8472fc2e56ce2@mail.gmail.com>,

16 messages 2005/10/25

[#162635] The "perfect" ORM? — Hal Fulton <hal9000@...>

For many weeks I have had this at the back of my mind.

53 messages 2005/10/26
[#162910] Re: The "perfect" ORM? — George Moschovitis <george.moschovitis@...> 2005/10/27

> So anyway, this is one of my highest priorities -- to

[#162985] Re: The "perfect" ORM? — rubyhacker@... 2005/10/27

George Moschovitis wrote:

[#162688] help: trouble with ONLamp's cookbook tutorial / mysql — lewcio@...

I haven't yet touched the tutorial app's code except to change the

10 messages 2005/10/26

[#162876] Cleaner syntax for .map (is there already a way, or ruby2 idea?) — Ron M <rm_rails@...>

23 messages 2005/10/27
[#162907] Re: Cleaner syntax for .map (is there already a way, or ruby2 idea?) — "Trans" <transfire@...> 2005/10/27

[#162902] Ruby Quiz for building up Ruby? — Hugh Sasse <hgs@...>

I put this suggestion to James Edward Gray II as a means to an

15 messages 2005/10/27

[#162982] Argument Passing Syntax — gwtmp01@...

Why are arguments to the '[]' method parsed differently

14 messages 2005/10/27

[#163026] "Reflecting" on my self.n00b — swille <sillewille@...>

I'm admittedly quite a novice with programming. I'm sort of playing

12 messages 2005/10/28

[#163094] PARSER for RUBY — puellula@...

Hi,

20 messages 2005/10/28

[#163152] "Readability" inflation — "David A. Black" <dblack@...>

Hi --

69 messages 2005/10/28
[#163276] Re: "Readability" inflation — Martin DeMello <martindemello@...> 2005/10/29

David A. Black <dblack@wobblini.net> wrote:

[#163283] Re: "Readability" inflation — "Trans" <transfire@...> 2005/10/29

[#163209] What would it take to change the behaviour of variable assignment? — Daniel Nugent <nugend@...>

Hello,

11 messages 2005/10/28

[#163210] TumbleDRYer (#53) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

10 messages 2005/10/28

[#163274] determining whether an object is an immediate? — Eric Mahurin <eric_mahurin@...>

This is be best I could come up with for determining whether an

16 messages 2005/10/29

[#163383] Which Ruby Version? — "Trans" <transfire@...>

Okay, since 1.8.3 is smoking, which version should I be using right

15 messages 2005/10/30

[#163393] C# attributes in Ruby? — Stephan Mueller <d454d@...>

Hi,

16 messages 2005/10/30

[#163401] 1.8.4 preview1 win32 error — simonharrison@...

I've downloaded the binary release from garbagecollect.jp and now irb

13 messages 2005/10/30

[#163465] qtruby problems now on linux — "Hans Fugal" <fugalh@...>

Maybe it's related to halloween being tomorrow; all of a sudden qtruby

17 messages 2005/10/31

[#163469] Re: <ANN> TeSLa, a Domain Specific Language for Unit Testing — "Daniel Sheppard" <daniels@...>

>

20 messages 2005/10/31
[#163679] Re: <ANN> TeSLa, a Domain Specific Language for Unit Testing — "obscured by code" <javierg1975@...> 2005/11/01

Well, I think your confusion stems from my use of the word

[#163779] Re: <ANN> TeSLa, a Domain Specific Language for Unit Testing — Ryan Leavengood <leavengood@...> 2005/11/02

On 11/1/05, obscured by code <javierg1975@gmail.com> wrote:

[#163790] Re: <ANN> TeSLa, a Domain Specific Language for Unit Testing — James Britt <james_b@...> 2005/11/02

Ryan Leavengood wrote:

[#163901] Re: <ANN> TeSLa, a Domain Specific Language for Unit Testing — Christian Neukirchen <chneukirchen@...> 2005/11/03

James Britt <james_b@neurogami.com> writes:

[#163920] Re: <ANN> TeSLa, a Domain Specific Language for Unit Testing — Eric Mahurin <eric.mahurin@...> 2005/11/03

On 11/3/05, Christian Neukirchen <chneukirchen@gmail.com> wrote:

[#163528] Trapping errors. — Hugh Sasse <hgs@...>

begin

19 messages 2005/10/31

[#163558] Newbie: How to format a number to always show two decimals? — "i.v.r." <ivanvega@...>

Hi,

19 messages 2005/10/31
[#163559] Re: Newbie: How to format a number to always show two decimals? — James Edward Gray II <james@...> 2005/10/31

On Oct 31, 2005, at 4:47 PM, i.v.r. wrote:

[#163560] Re: Newbie: How to format a number to always show two decimals? — "i.v.r." <ivanvega@...> 2005/10/31

James Edward Gray II wrote:

[#163562] Re: Newbie: How to format a number to always show two decimals? — Harold Hausman <hhausman@...> 2005/11/01

Alternatively there's this code from Phrogz's library (

A comparison by example of keyword argument styles

From: Brian Mitchell <binary42@...>
Date: 2005-10-21 06:47:52 UTC
List: ruby-talk #161792
Hello fellow rubyists,

What I have bellow is what started as a post to RedHanded. It was
growing in size too rapidly so I decided to post here for all to see.
Sorry for starting yet another thread on these topics. It is rough so
please don't nit pick details. I don't want this to start a flame war
(though I can't do much about that now). I would rather see some ideas
on how to get the best of both worlds. Some of this won't come without
a compromise so keep that in mind. I apologize in advance if I did
make any grievous errors in my interpretations.

There is a matter of taste involved but beyond that there are a few
easy comparisons. I will try to keep this down to just that (though a
few may be on a grey line, I hope they are clear enough).

Let me cite Matz's slides first:
* Make method calls more descriptive
* Order free arguments

With that simple goal in mind, lets start the comparisons.

Sydney's argument scheme (s_ henceforth) is simple when you want to
reorder the arguments.

def s_f1(a,b,c) ... end
s_f1(b:2, a:1, c:3)

Matz's scheme (m_ from now on) allows this too:

def m_f1(a:,b:,c:) ... end
m_f1(b:2, a:1, c:3)

Ok. Not much difference right away no clear winner. Lets examine
another variation on calling these:

s_f1(1,2,3) # Simple. current behavior.
m_f1(1,2,3) # Error. No positional arguments.

This shows one point that goes to s_. It makes it easy to use keyword
args that still have position. However, Matz could consider to allow
keyword arguments to count as positional arguments and make this
example go away. It is up to him. +1 for s_ for now. The change would
force non keyword args to come before keyword args. simple enough.
Though I still don't see a good reason to share both positional and
keyword arguments (a good example would be of great help in this
discussion).

The next example will be a method that takes any number of key-worded arguments:

def m_f2(**keys) ... end
m_f2(k1: 1, k2: 2, k3: 3)

def s_f2(*args) ... end
s_f2(k1: 1, k2: 2, k3: 2)

That works but there are some complications that the s_ method starts
to see (the hidden ugly head). *args now gets an array with hash
(key-value) or a value with each entry. Ugly. Now something internal
is depending on how someone on the outside (away from the interface)
called it to see what it gets. I hope this is clear enough for you. +1
for m_.

How about mixing positional and keyword args?

def m_f3(p1, p2, k1:, k2:) ... end
def s_f3(p1, p2, k1, k2) ... end

*_f3(1,2,k1:3, k2: 4)

Not much difference. m_ requires the extra : to be added. This is
neither a plus or a minus as it can be easily argued both ways. No
winner. (I will argue it if needed but trust me one can look both
ways).

How about having a variable number of positional arguments and a set
number of keys?

def m_f4(*args, a:, b:)
m_f4(1,2,3,4,5,6,7,8, a:1, b:2) # misleading see bellow.

def s_f4(a, b, *args)
s_f4(1,2,3,4,5,6,7,8, a:1, b:2) # might have the same problem

The s_ example is nice. It show an intuitive behavior at first but
depending on implementation you can no longer pull a variable number
of key paris or you have the same semantic problem that the m_ one
has. If you use * at all that allows any number of arguments of any
type to be passed. Assuming the latter behavior (needed for *args to
work with delegation), then neither has any gain. I may be miss
understanding s_ at this point so please point it out.

How about having both keyword and positional arguments mixed in a
catch-all with *?

def m_f5(*args)
m_f5(1,2, a:3, b:4)

def s_f5(*args)
s_f5(1,2 a:3, b:4)

Well things start to contrast now. For s_ you get: [1,2, { :a => 3}, {
:b => 4}] if I understand correctly. m_ gives you [1,2, {:a => 3, :b
=> 4}]. I won't debate on which is better in this case. Most of this
is involved with opinion. However, if you want to look at positionals
alone and keys alone it is easy with m_ we now have the hash collected
at the end of *args and can use **keys if we want to. Not a huge plus
but a point to make things easy. It will minimize boilerplate code on
a method. I give m_ a +1, you may disregard it if you don't agree.

Now think about the above before we move on. Keep in mind that it is
not just another way to call a method but gives the method's interface
a richer meaning (like Matz's slide said).

Now for some more concrete examples of usage:

Say we have an object that we create from a class through some special
method. The some arguments are required while others may or may not be
there but the circumstances differ. Imagine that the list of
attributes that can be passed may become quite long so using default
arguments wouldn't be a very good idea. Or even further, the keys
might be passed to a second function. This would normally be odd code
to see but it shows how the nature of the two methods differ by quite
a bit in real use.

# Untested code. Could contain errors. At least I have an excuse this time.
class Pet
  def self.m1_create(kind, name, **keys)
    pet = Pet.allocate
    pet.kind = kind
    pet.name = name
    case(kind)
    when :ham
      pet.weight = keys[:weight]
    when :cat
      pet.color = keys[:color]
    when :dog
      pet.color = keys[:color]
      pet.breed = keys[:breed]
    when :ruby
      pet.facets = keys[:facets]
    else
      fail "Uknown kind of pet: #{kind}"
    end
  end

  # Same as m1_ but with a different method argument style.
  def self.m2_create(kind:, name:, **keys)
    # Lazy me ;) They are the same otherwise anyway.
    m1_create(kind,name,**keys)
  end

  def self.s_create(kind, name, *args)
    pet = Pet.allocate
    pet.kind = kind
    pet.name = name
    # Messy solution. There is probably a better one.
    get = lambda {|sym|
      args.find(lambda{{}}) {|e|
        e.kind_of? Hash && e[sym]
      }[sym]
    }
    case(kind)
    when :ham
      pet.weight = get[:weight]
    when :cat
      pet.color = get[:color]
    when :dog
      pet.color = get[:color]
      pet.breed = get[:breed]
    when :ruby
      pet.facets = get[:facets]
    else
      fail "Uknown kind of pet: #{kind}"
    end
  end
end

Pet.m1_create(:ham, "selfish_ham", weight:2.3)
Pet.m2_create(kind: :cat, name: "cat43", color: :black)
Pet.s_create(:dog, "singleton", color: :brown, breed: :mini_pincher)
Pet.s_create(kind: :ruby, name: "JRuby", facets: 26)

My s_ method is messy and could probably be cleaned up but it still
serves a point. Savor the style for a bit. It might add more verbosity
but I think it gives us some good side effects for the small price
(IMHO again). I think some really good points can be made for both
side but my _feeling_ is that Ruby doesn't need another halfway there
feature (IMHO). Keyword arguments are serious things and should be
treated as part of your interface (IMHO). I feel that the semantics of
m_ are more clear than the at first simpler look of s_ (IMHO -- why
not just automatically append these till the end of my message). It is
a hard choice. We still have one more option that I know of, change
nothing. Hashes seem to get the job done for most people already. I
know I missed something so please add to this. If I made any errors
please correct them. Just avoid and unproductive and personal attacks
please.

Thanks for reading this far,
Brian.


In This Thread

Prev Next