

Re: Re: (OT - ruby) Re: Re: Favorite programming language, other than Perl: It's not better or worse than Perl - it's different, and I love them both. If you haven't checked it out, check it out. This was also discussed at Ruby: An Abbot breaks silencewind. It calls that method with that instance from the class. In a class definition, you call one of that class's methods like thod or like method, which is merely a shortcut for the former. You're supposed to call functions on objects, which can't be confused with a variable. When you talk about adding a local variable that masks calls to an earlier added function of the same name, you forget something: Ruby is an object-oriented langauge. It is possible to receive a block and then pass it on, it's just not introductory guide material. After all, languages don't change that much. And the Pragmatic Programmer's guide may be a year old, but it most certainly is not a year out of date. It's true that there's not a lot, but what's out there is good stuff. My main project right now (I'm a teenager - no job) is in Ruby, so I've gotten to know if fairly well.Īs to the lack of documentation. I am one monk who feels strongly about Ruby - strongly in favor. Re: (OT - ruby) Re: Re: Favorite programming language, other than Perl: Sure, Perl has some wierd things going on in places, but theyĭon't get me wrong - it's a fun, interesting language if you squintĪ bit, it's clean at a higher level. So if I add a local variable "foo", it can silently mask subsequentĬalls to a function "foo" that I've been happily calling for a month? Variable otherwise it treats it as a method call. When it subsequently comes across a symbol that might beĮither a variable or a method call, it checks to see if it has seen a As Ruby reads a source file, it keeps track of symbols

When Ruby sees a name such as ``a'' in an expression, it needs toĭetermine if it is a local variable reference or a call to a method But when you look at some of the corner cases, it getsįrightening.

Hackishness: The syntax is usually clean, friendly, DWIM, and.Haven't found the answer, though I'm not done searching. AfterĪ bit of searching, I found the Pragmatic Programmers' guide which,Īlthough good, appears to be at least a year out of date. Guides give examples, but no general rules for how blocks work. How do I then pass that block on to another method? The introductory Lack of documentation: If I write a method that takes a block,.I just took another look this afternoon, and was onceĪgain found myself ready to abandon the attempt without doing anything I've glanced at Ruby before, probably after someone remarked on howĬlean it is. (OT - ruby) Re: Re: Favorite programming language, other than Perl:
PERL PROGRAMMING LANGUAGE CODE
They'll be able to run a Ruby-based system similar to the Everything Engine once the admin of this project gets off his lazy ass and releases some code ). Re (3): Favorite programming language, other than Perl: I prefer web sites where people eat their own cooking. Re (2): Favorite programming language, other than Perl: While there's no Ruby Monks yet, there is a Ruby Garden and some good mailing lists.įor the interested, there's also an excellent book available online that will give you a good feel for the language. Beautiful OO, and very easy to learn coming from a Perl background. yet :) but my current favorite (other than Perl of course) is Ruby. Re: Favorite programming language, other than Perl:
