117127-119125

116880-121116 subjects 117321-117918

^ A concise description of Ruby?
117127 [curt hibbs.c] Yesterday, a co-worker came into my office and saw the shiny, new pickaxe II
+ 117135 [lymans gmail] I tell coworkers - "It's the language that'll let you like programming again."
| 117204 [onurb xiludo] (top -post corrected)
+ 117137 [flgr ccan.de] Ruby is a language where code is used to make Objects communicate. This
+ 117139 [rff_rff remo] it's an OO dynamic language with simple syntax. It is fun oriented.
| 117141 [cmills frees] programming fun again".
| 117205 [onurb xiludo] The second part was already used 5 years ago when talking about Python...
| 117226 [rff_rff remo] imo python's marketing word is 'readability' or 'simplicity', not fun.
| 118942 [onurb xiludo] fun + ruby + programming -> 69 500
| 118945 [jgb3 email.b] bruno + python + fan -> 2320
| 119124 [onurb xiludo] Great ! Well done ! Nice job, boy !-)
+ 117142 [transami run] I knew that one day someone would ask ;)
| 117151 [hal9000 hype] Actually, you can just attribute the comp.lang.ruby FAQ -- I maintain
+ 117149 [haaktu gmail] i tell people - "it's the kind of language that makes you feel sexy.
| 117154 [mike clarkwa] "Ruby?  Oh, you won't like this language.  (Slides Pixaxe II out of
| + 117156 [haaktu gmail] there's 'oomph!' in this one.
| + 117158 [curt hibbs.c] Wow! I like this!!
| | 117206 [jim freeze.o] What do you mean. I thought that was a serious response....If not serious,
| + 117159 [lymans gmail] Mod up - this is the best one so far... followed up quickly with,
| + 117163 [transami run] Good one, Mike. Reminds me of a Dilbert funny.
| + 117207 [onurb xiludo] keyboard !-)
+ 117150 [james graypr] Ruby is a very object oriented language with a super clean syntax that
| 117161 [jamesUNDERBA] I like most of the suggestions so far.
| + 117192 [ehames gmail] Given that Ruby comes from Perl and Smalltalk, why do some people keep
| | + 117199 [curt hibbs.c] They are both dynamic, typeless, OO languages. If that is what you are
| | | 117203 [ehames gmail] Back in February, I was looking for a new OO programming language with
| | + 117212 [onurb xiludo] and lisp and Python...
| |   + 117215 [jgb3 email.b] You're right, except that (IMO) Python is not strongly OO. That's my
| |   | 118944 [onurb xiludo] A fact is a fact, whatever your opinion is. Please note that I didn't
| |   + 117216 [joaopedrosa ] You seem to like Python a lot. Can I ask you 10 features of Ruby that
| |   | 117228 [rff_rff remo] that's simplifying too much for both, but bruno was talking about _main_
| |   + 117225 [behrends cse] I very much doubt that C ever was a strong influence for Python's
| |     118941 [onurb xiludo] Actually, my initial goal for Python was to serve as a second language
| |     118955 [batsman.geo ] Hardly trollish at all... a well-known Rubyist once said that it's a
| |     119125 [onurb xiludo] Ok, so just remove the <troll> tags !-)
| + 117209 [onurb xiludo] Err... actually, it's 'self', not '__self__', and since it's pretty
|   117261 [jamesUNDERBA] Oh, quite right, but that's why I would say that Ruby is *almost* like
|   + 117272 [botp delmont] 1. "ruby brought me back to programming"
|   + 118939 [onurb xiludo] I don't write pseudo-code no more - I just write Python !-)
+ 117157 [jk microgala] Ruby is the programming language that makes you have more time for
+ 117165 [neoneye adsl] Ruby allows to you enhance the builtin string class with you own methods,
| + 117166 [jamesUNDERBA] JavaScript.
| | 117170 [curt hibbs.c] Yes, JavaScript is underrated. A lot of the things we do with Ruby can be
| | + 117171 [transami run] And the DOM sucks.
| | | 117259 [jamesUNDERBA] DOM?  There is no DOM in JavaScript.  There are JavaScript bindings for
| | + 117184 [flgr ccan.de] See attachment. ;)
| | | + 117185 [hal9000 hype] Florian,
| | | | 117188 [flgr ccan.de] Maybe I can do something like that in the future -- for now it seems to
| | | | 117258 [jamesUNDERBA] This Rubyist taught a class in JavaScript, and tried to teach how to
| | | | 117282 [curt hibbs.c] James Britt [mailto:jamesUNDERBARb@neurogami.com]
| | | + 117186 [batkins57 gm] Wow.  That's incredible.  If there were a complete port of all the
| | | + 117187 [jgb3 email.b] What license is this available under? Can I use it at work? Huh? Huh?
| | |   + 117190 [flgr ccan.de] Ruby's license, so yes. I'd be interested to know if any projects using
| | |   + 117260 [jamesUNDERBA] BTW, a discussion of this sort of JavaScript goodness came up at the
| | + 117248 [gavin refine] Agreed.
| + 117174 [B.Candler po] I'm not sure that's such a good advertisement: it still seems very hackish
| | 117191 [jos catnook.] This is not quite accurate. If you stick the following in a file and run it,
| + 117194 [rff_rff remo] python does, and I /think/ smalltalk. And prototype based OO languages
|   + 117197 [hal9000 hype] I don't know Python, but I really don't think it allows extension of
|   + 117214 [onurb xiludo] It doesn't.
|     117230 [rff_rff remo] Right, it does'nt for 'types' like str, but it does for all the other
+ 117193 [paulNO SPAM.] You're looking for a ruby "elevator speech"!
| 117219 [ptkwt aracne] The Puritans often get a bad wrap, but that would lead to another long
+ 117217 [rasputnik he] I usually go for "First rule of Ruby Club - you do not talk about Ruby Club"
| 117221 [neoneye adsl] Ruby has hidden positive suprises. Even though I have used it for long time,
| 117222 [vjoel PATH.B] So ruby has both POLS and POPS (or POMS)?
+ 117312 [doodpants ma] My standard answer is "It's the third item in the set 'Perl, Python, and Ruby'".
| 117328 [gsinclair so] Nice.  Like: what _is_ the number three?  A: the size of a set with
+ 117343 [aredridel gm] I say "A language that's like the best parts of Smalltalk, Perl and

^ Pickaxe II  promo for FOSDEM supporters
117133 [raphael.baud] I've talked about FOSDEM (http://www.fosdem.org) here before, trying unsuccessfully :(
117923 [jan spam.spa] If we want a good chance at getting a developer room, we should have a

^ hash <<
117138 [ummaycoc gma] So, unless you count merge! and update, there doesn't seem to be a way
+ 117143 [james graypr] h.update(:a => :b, :c => :d, :e => :f)
| 117144 [ummaycoc gma] I really just wanted to show the chaining thing - but there may be
| 117145 [ummaycoc gma] [double post]
| 117148 [B.Candler po] Feels better than
| 117153 [ummaycoc gma] You'd have to make that
+ 117146 [B.Candler po] Ugh. Toggling internal state like that will leave you in mutex hell if
+ 117147 [bob.news gmx] "Matt Maycock" <ummaycoc@gmail.com> schrieb im Newsbeitrag
+ 117210 [flgr ccan.de] I'm not sure, but maybe KeyedList could help here. It is a Hash that has
+ 117559 [markus reali] class Hash
  117583 [ummaycoc gma] The undead would still be chasing you - just with a mixed drink... :-)

^ ruby-htmltools on cygwin - SystemStackError
117162 [feigenb hcs.] I have just installed Ruby under Windows painlessly
117634 [markus reali] I don't know much about the innards of ruby-htmltools, and I don't
117642 [feigenb hcs.] [snip some very helpful advice and observations]

^ problem w/ ruby install on windows -- or not?
117167 [jbarrett fin] ruby 1.8.1 (2003-12-25) [i386-mswin32]
+ 117168 [jbarrett fin] Incidently this is on WinXP w/ Service Pack 1.
+ 117182 [WayneFChin g] from RubyInstaller.  I've also tried both 1.8.1 and 1.8.2.  Both of
  117720 [timsuth ihug] Btw, the reason that

^ argument hash
117169 [cmills frees] After reading the "Too many default argument values!" thread I was
117181 [cmills frees] After reading the "Too many default argument values!" thread I was
117263 [bob.news gmx] "Charles Mills" <cmills@freeshell.org> schrieb im Newsbeitrag

^ Idiom -- is there a better way?
117173 [probertm nos] class Foo
+ 117175 [khowe perfne] Replace eval "self.#{fn}" with method(fn).call
+ 117177 [alex verk.in] Try self.send(fn) instead.
+ 117179 [transami run] self.send(fn)
+ 117247 [gavin refine] Does the function need to be a string argument?
| 117306 [probertm nos] Yup.  What I am doing is taking a YAML entry and converting it into a
+ 117264 [bob.news gmx] "Mark Probert" <probertm@nospam-acm.org> schrieb im Newsbeitrag
+ 117317 [john.carter ] #Try

^ FTP folder creation mkdir problem
117176 [rubytalk gma] I log in fine. I move to differnt folders fine. I display everthing
117180 [decoux moulo] try with
+ 117183 [rubytalk gma] i did
+ 117208 [rubytalk gma] Is there a way i could make what they are typing in for the password?

^ each with separator
117189 [mneumann nte] I know we had a similar thread in the past about first/last-element
+ 117195 [Gavin.Kistne] [1,2,3].separate_by { puts "-" }.each {|obj|
+ 117196 [ptkwt aracne] Well, it's not exactly the general-purpose solution you're looking for,
| 117201 [mneumann nte] Yes of course, but it's not imperative and I'm looking for an imperative
| 117211 [B.Candler po] module Enumerable
| 117213 [B.Candler po] I suppose, from what I was saying before about it being impolite to pollute
+ 117198 [cmills frees] module Enumerable
| 117202 [jgb3 email.b] Another esoteric solution, which came to me while reading the above
+ 117265 [bob.news gmx] "Michael Neumann" <mneumann@ntecs.de> schrieb im Newsbeitrag

^ Python vs. Ruby (Re: A concise description of Ruby?)
117200 [jgb3 email.b] I, for one, dislike Python for various reasons. However, both Python and
+ 117218 [curt hibbs.c] Well said!
| 117220 [joaopedrosa ] Maybe we should have a clear position of why Ruby is a "little bit" better
| + 117223 [mike clarkwa] Or just keep building good, clean applications that people can
| + 117224 [jgb3 email.b] 1) Python's outline style REALLY bugs me.
| + 117227 [rff_rff remo] you can't really have a a clear 'why it is better for me' thing.
+ 117231 [eeklund gmai] I've tried to talk to people that know burh Ruby and Python, in an
| 117233 [rff_rff remo] - @vars sux
| + 117236 [ruby-talk pc] These are certainly not very hard-hitting counterexamples.  @vars tells
| | + 117238 [sera fhwang.] This does seem to come up a lot in Python vs. Ruby comparisons. I think
| | + 117241 [rff_rff remo] given than I actually usually give the same answers you did, I'll reply
| | | 117244 [flgr ccan.de] @ is used in rogue likes (like NetHack) to represent your*self*. Not
| | | + 117246 [matz ruby-la] I think inspiration came somewhere around rogue actually.  I used to
| | | + 117280 [rff_rff remo] approaches, just trying to show the one in the P-language :)
| | + 117242 [flgr ccan.de] I'm a passionate Ruby user myself and I find Python quite limiting in
| |   + 117271 [ruby-talk pc] No, I'm not implying that continuations are evil, I think they are a
| |   + 117281 [rff_rff remo] I think the problem lies in having overlap beetween methods and
| + 117239 [joaopedrosa ] Used often with a nice syntax color. Can't be beaten by (self) self.
|   117243 [rff_rff remo] we have Kernel.Float(astring) (and Integer and others).
+ 117235 [phlip_cpp ya] Python and Ruby are so closely similar they will cause a great amount of

^ Singleton Class or Module Functions?
117232 [transami run] I've come across this seemingly indistinct option too many times now. Which is
+ 117240 [dblack wobbl] (Do you mean 'hello' rather than 'ameth'?)
| 117245 [transami run] Yes.
| + 117250 [dblack wobbl] It depends what you mean by "difference" :-)  It's true that in both
| + 117266 [B.Candler po] In the first case, the object *is* the module. In the second case, you have
|   117311 [jason jvoege] I agree with Brian's assessment, and furthermore IMO Singleton is an
+ 117291 [gavin refine] Thank you for this; I'm just starting my project, and I have 6
| 117310 [transami run] From the responses (thanks for those BTW!) I gather that using modules in this
+ 117293 [gavin refine] module Foo
  117299 [B.Candler po] module Foo

^ Escaping single quotes in XPath query with REXML
117253 [sera fhwang.] Anybody tried to use XPath in REXML with a single quote, only to run
117267 [B.Candler po] I'm no expert in XPath, but that looks like a broken XPath query because of
117268 [B.Candler po] Hmm, that doesn't work.

^ Printing a backspace
117254 [rubytalk gma] ######code 1
+ 117255 [flgr ccan.de] The problem is that .getc will read a whole line at the time then buffer
| 117288 [rubytalk gma] Is there any documentation on cls? Or exmaples?
| 117294 [flgr ccan.de] It is just a windows specific command that clears the complete console.
+ 117289 [nobu.nokada ] require 'io/console'

^ [ANN] Nitro 0.1.2
117262 [ gm navel.gr] = Nitro
117269 [rff_rff remo] cool thanks for releasing :)
117270 [george.mosch] Well, we have made some money using Ruby on various projects, so it

^ CamelCase issues
117273 [mneumann nte] For method names that contain up to two words, I really prefer the
+ 117274 [bob.news gmx] "Michael Neumann" <mneumann@ntecs.de> schrieb im Newsbeitrag
| + 117275 [mneumann nte] I usually agree. Hmm strange, now the example with underscores starts to
| + 117276 [mneumann nte] Then, how about file names? Do you prefer underscore-style, too?
|   + 117277 [ gm navel.gr] I prefer session-store.rb (like many filenames in the standard Ruby
|   | 117284 [ruby-talk pc] definitely,
|   + 117279 [bob.news gmx] "Michael Neumann" <mneumann@ntecs.de> schrieb im Newsbeitrag
|   + 117283 [halostatue g] sessionstore.rb
+ 117308 [transami run] c.form.url("foo").with {
| + 117325 [Richard_Dale] In the QtRuby/Korundum api, I've allowed both camel case and lower case with
| + 117329 [gsinclair so] * if it begins with a capital letter, it's (probably) a constant
|   117333 [transami run] Understood. Consistency in whatever form is nice. I have a made a few
|   + 117341 [transami run] Brief and interesting read.
|   + 117348 [eeklund gmai] I think the idea of programming in one's "native language" is a bad
+ 117316 [    s xss.de] Actually, I'd prefer
  + 117322 [michael.deha] To add more confusion to this thread ...
  | + 117323 [mneumann nte] def render_content_on(renderer)
  | + 117332 [gavin refine] I do this for some of my own libraries (because I want the method to be
  + 117326 [mneumann nte] Hm, sure, but I've to create the content or table.header object
    117342 [    s xss.de] Yes, that's the point. Long method names as in your example
    117346 [mneumann nte] The component! For example the button component has to draw itself onto
    117347 [    s xss.de] Aha. I actually did not get this. Not only am I losing hair, I'm also
    117441 [mneumann nte] oooh, sorry ;)
    117444 [    s xss.de] not yet ... I can't decide between a custom built minimal system

^ [ANN] Rabbit 0.0.4
117278 [kou cozmixng] I released Rabbit 0.0.4. Rabbit is an application for
+ 117296 [kou cozmixng] In <20041021.192826.127172255.kou@cozmixng.org>
+ 117349 [ bchk gmx.de] Don't do this on a website... Who will be able to read it?

^ [SUMMARY] Regexp.build() (#4)
117285 [james graypr] The first thing to consider in this quiz is what does a Regexp to match a number

^ wxRuby: How to add a scrollbar to a Wx::Notebook tab
117286 [Stephan.Kaem] having just started to work with wxRuby, I would like to
117290 [curt hibbs.c] I'm going to cross-post this to the wxRuby ML because I know of at least one
+ 117295 [Stephan.Kaem] Thanks! (I'm going to subscribe to the wxRuby ML, too.)
+ 117303 [zdennis mkte] The only thing that appears to be in the wxRuby arsenal to handle

^ Where to send bug report?
117292 [jgoizueta wa] I have a detailed report about a bug in an extension from Ruby stdlib
117300 [nobu.nokada ] ruby-core or here.
117313 [pbrannan atd] Are there any plans to change this in the future?  I was under the

^ [ANN] DocDiff 0.3.1
117302 [hisashim kt.] DocDiff at RAA

^ [BUILD] ruby-1.8.2p2 failing to build gdbm, iconv
117304 [B.Candler po] I am building ruby-1.8.2p2 under FreeBSD-5.2.1, but I am unable to get the
117307 [B.Candler po] But strangely, after I've built and installed ruby if I then do "ruby

^ [ANN] Needle 0.6.0
117305 [jgb3 email.b] Needle is a new dependency injection (a.k.a. "inversion of control")

^ A problem with bigdecimal.c, and proposed solution (long)
117309 [jgoizueta wa] This is about a problem in ruby/ext/bigdecimal.c. that makes
117314 [jgoizueta wa] I've done a small change in the while loop of  that improves the

^ signal problems on win32
117315 [scott_mccask] I have a simple program that reads from a socket, compresses the data
117320 [rcoder gmail] I've encountered this as well, and had just resorted to using
117327 [nobu.nokada ] * win32/win32.c (rb_w32_call_handler): workaround for Ctrl-C.

^ 'gem install rails' error
117318 [discordantus] I finally decided I had the time to try out the Rails framework, so I
117324 [david loudth] Are you running Ruby 1.9? Rails 0.7 has a problem that. It should be
+ 117330 [gsinclair so] spec.required_ruby_version = ['> 1.8.1', '< 1.9.0']
+ 117336 [discordantus] Well, that would be the problem :) 1.9 is so stable that I keep
  117339 [gsinclair so] What features?
  117426 [discordantus] Almost missed this one :)
threads.html
top