From: dblack@... Date: 2002-09-17T06:41:30+09:00 Subject: Re: camelCaseTo_ruby_case.rb ?? Hi -- On Tue, 17 Sep 2002, Hal E. Fulton wrote: > ----- Original Message ----- > From: "Bob X" > Newsgroups: comp.lang.ruby > To: "ruby-talk ML" > Sent: Monday, September 16, 2002 4:12 PM > Subject: Re: camelCaseTo_ruby_case.rb ?? > > > > Thomas S�ndergaard wrote: > > > Hi, > > > > > > I'll be converting my ruby code from camelCase to ruby_case. Is there a > > > script out there to get me going? > > > > Forgive my ignorance. I know the difference of the two but *why* are you > > changing it? Did the Ruby consensus decided that is the way to code? Not > > a dig...I am a newbie to programming and so have no habits it this area. > > I really am just wondering the why of it. > > I don't know that it's a consensus really, and I > think calling it ruby_case is a bit extreme. Oh, I don't know -- I was warming to that :-) > Matz does prefer underscores, I think. camelCase > is used nowhere in the core AFAIK. > > The worst way, of course, is to mix the two > according to no apparent logic... as I do. I like Maki's guidelines at: http://rwiki.jin.gr.jp/cgi-bin/rw-cgi.rb?cmd=view;name=RubyCodingConvention which I think correspond also to what Matz and others have done in the core. (I don't agree with the noun/verb distinction for class/method, though, but that's not relevant to the style things.) David -- David Alan Black | Register for RubyConf 2002! home: dblack@candle.superlink.net | November 1-3 work: blackdav@shu.edu | Seattle, WA, USA Web: http://pirate.shu.edu/~blackdav | http://www.rubyconf.com