[#17136] Net::SMTP error — Alan Tsang <atsang@...>
[#17151] Calling Marshal.dump/load from C — Emil Ong <onge@...>
Hi,
[#17167] ` (back tick) on Win32 machines — Stephan K舂per <Stephan.Kaemper@...>
Hi all,
[#17177] Question on Net::HTTP — Dave Thomas <Dave@...>
[#17198] enhancing Ruby error messages for out of the bound constant Fixnum? — Guillaume Cottenceau <gc@...>
Hi,
Hi,
matz@ruby-lang.org (Yukihiro Matsumoto) writes:
On Thu, 5 Jul 2001, Guillaume Cottenceau wrote:
[#17206] /* */ comments — Dave Thomas <Dave@...>
On Wed, 4 Jul 2001, Dave Thomas wrote:
Stephen White wrote:
> Over on http://www.rubygarden.org, dv posted a patch to parse.y that
Hi,
Hello --
[#17212] Ruby 1.6.4 Win32 .exe installer question — A Bull in the China Shop of Life <feoh@...>
Folks;
A Bull in the China Shop of Life <feoh@fourfuzzies.org> writes:
[#17224] Getting variable name — DaVinci <bombadil@...>
Hi.
[#17225] Re: /* */ comments — Arnaud Meuret <ameuret@...4you.com>
|From: Mark Slagell [mailto:ms@iastate.edu]
[#17240] Ruby Mascot/logo — "Kevin Powick" <kpowick@...>
Hi there.
"Cameron Matheson" <cmatheson3@yahoo.com> wrote in message
>"Cameron Matheson" <cmatheson3@yahoo.com> wrote in message
[#17254] extension and GC — Shan-leung Maverick WOO <maverick@...>
Hello,
[#17281] Inheritance — "Aleksei Guzev" <aleksei.guzev@...>
>>>>> "A" == Aleksei Guzev <aleksei.guzev@bigfoot.com> writes:
# -----Original Message-----
>>>>> "A" == Aleksei Guzev <aleksei.guzev@bigfoot.com> writes:
What I want to do could be expressed in pseudo-C++.
>>>>> "A" == Aleksei Guzev <aleksei.guzev@bigfoot.com> writes:
I have hardware, wich in case of division be zero generates an
>>>>> "A" == Aleksei Guzev <aleksei.guzev@bigfoot.com> writes:
[#17295] — "Aleksei Guzev" <aleksei.guzev@...>
I found a solution.
[#17307] Re: Extension building — Ed L Cashin <ecashin@...>
Tony Smith <tony@smee.org> writes:
[#17331] SIGUSR1/2 ? — Emil Ong <onge@...>
Hi,
>>>>> "E" == Emil Ong <onge@mcs.anl.gov> writes:
Hi,
[#17348] Adding a method to a class at the top-level — Guillaume Cottenceau <gc@...>
Comrades,
On Fri, 06 Jul 2001 06:24:15 +0900, Guillaume Cottenceau wrote:
[#17396] Problem with Ruby/Gtk and GC — DaVinci <bombadil@...>
Hi all.
[#17413] Default Value in a Hash.. but I need a new object each time! — Guillaume Cottenceau <gc@...>
Hi,
[#17432] performance question — Joseph McDonald <joe@...>
[#17441] Tk - how to clear a canvas? — Tjabo Kloppenburg <tjabo@...>
hi,
[#17477] wget in Ruby with a twist — Steve Price <sprice@...>
Just curious if someone already developed something that creates
[#17482] Aliases for class methods — "HarryO" <harryo@...>
Say I wanted to write my own version of File#open that adds some
Thanks. I put most of my comments in my reply to Dave's post, so I won't
[#17484] % — "Aleksei Guzev" <aleksei.guzev@...>
On Sun, 8 Jul 2001, Aleksei Guzev wrote:
[#17511] Ruby on Slashdot — jweirich@...
Ruby is currently mentioned on Slashdot. I posted some references.
Interesting...
Hi,
> |I thought about that too; what about Ruby being a standard?
Hi,
Hello --
On Mon, 9 Jul 2001, David Alan Black wrote:
[#17540] Dir.chdir — stephen.hill@... (Steve Hill)
Hi,
[#17546] Constants and Variables — mjl@... (Martin J. Laubach)
Hi there,
[#17552] Re: Ruby on Slashdot — "K. Powick" <kpowick@...>
Having been a reader of Slashdot for quite a while, and having taken the
[#17560] low-level TCP/IP manipulations? — Al Chou <hotfusionman@...>
Hi, all,
[#17562] writing arbitrary data to a socket — Al Chou <hotfusionman@...>
Continuing my investigations into my Ruby network hardware emulator, is there a
[#17570] Re: Constants and Variables — r2d2@... (Niklas Frykholm)
Martin J. Laubach wrote:
[#17572] Re: Constants and Variables — "HarryO" <harryo@...>
> If you want objects that don't change, try Object#freeze,
[#17607] Net/Http problem - connect(2) error on windows — jbshaldane@... (S Sykes)
I run ruby on Windows 2000... it works wonderfully, except when
[#17628] Strange warning — Bob Alexander <balexander@...>
What exactly does Ruby's warning message
[#17632] Re: SWIG — Craig Files <Craig_Files@...>
We have done this two ways...
[#17633] WIN32OLE — "MikkelFJ" <mikkelj-anti-spam@...1.dknet.dk>
Have anyone successfully used the win32ole library for ruby?
[#17634] SWIG and strings — Craig Files <Craig_Files@...>
Hi,
[#17637] TkPhoto on a button — "Hal E. Fulton" <hal9000@...>
Ruby/Tk question for you all.
[#17671] IO in a Ruby extension — "Brett W. Denner" <Brett.W.Denner@...>
I need to write a Ruby extension which reads binary data from a C FILE
[#17686] YART (Yet Another Ruby Talk) — Jim Menard <jimm@...>
This talk was given to the New York City CTO Club on July 10, 2001.
[#17688] Ruby jobs — "Peter Hickman" <peterhi@...>
I was looking on Job Serve here in the UK (things aren't going too well down
[#17689] Re: Old chestnut: invariants, pre/post conditions and so on — "MikkelFJ" <mikkelj-anti-spam@...1.dknet.dk>
[#17694] Funky file.each_byte — nlper@... (Tyler)
Howdy! I was filtering some files and ran into an anomaly.
[#17732] Re: Array#sort! returns nil when array empty — hfulton@...
> Array#sort! returns nil if the array is empty, whereas ri
On Fri, 13 Jul 2001 hfulton@pop-server.austin.rr.com wrote:
>>>>> "P" == Paul Brannan <pbrannan@atdesk.com> writes:
On Fri, 13 Jul 2001, ts wrote:
While following the Array thread, I noticed the minus
Jim Freeze <jim@freeze.org> writes:
On Fri, 13 Jul 2001, Dave Thomas wrote:
Jim Freeze <jim@freeze.org> writes:
> pigeon% ruby -e 'p ("a b c :d e f".split(/:(\S.*)|\s+/) - [""])'
[#17773] What happened to Ruby-Fltk? — Damon <adamon@...>
I heard about Ruby bindings to FLTK on this newsgroup, but the Ruby-Fltk
[#17797] Re: .Net, JVM and languages. — "MikkelFJ" <mikkelj-anti-spam@...1.dknet.dk>
[#17798] GC mark — "Aleksei Guzev" <aleksei.guzev@...>
"The mark routine will be called by the garbage collector during its
[#17832] Creating methods on the fly — "HarryO" <harryo@...>
I would like to create a new method on the fly. Assuming I have a
[#17833] Extending objects — "Aleksei Guzev" <aleksei.guzev@...>
Once I fire up Rubywin, and then invoke _R_uby _I_rb from the
At 07:05 PM 7/14/01 +0900, Euan Mee spewed forth:
[#17836] Specialised data structures - good or bad? — Stephen White <spwhite@...>
There's been a move towards implementing sets, bags, red-black trees and
[#17842] Bug ... probably another one — "Aristarkh A Zagorodnikov" <xm@...3d.ru>
[#17859] Re: Creating methods on the fly — "HarryO" <harryo@...>
I
"HarryO" <harryo@zipworld.com.au> writes:
This particular code yields some strange results.
Hello --
Hi,
[#17864] Trapping Ruby exceptions from C — senderista@... (Tobin Baker)
I'm trying to solve the problem of how to trap a Ruby exception from a
[#17872] Overloaded methods — "HarryO" <harryo@...>
A while ago, someone asked whether it was possible to overload methods in
[#17890] Deriving from Class — "Aleksei Guzev" <aleksei.guzev@...>
Why deriving from "Class" class is denied?
Hi,
Would You like to revise this issue? It seems to be inconsistent.
matz@ruby-lang.org (Yukihiro Matsumoto) writes:
[#17901] Rubygarden Poll — Dave Thomas <Dave@...>
Hello --
[#17922] Time vs ParseDate — Kero van Gelder <kero@...4050.upc-d.chello.nl>
Why doesn't Time accept the output from ParseDate.parsedate directly?
[#17925] Movement in scripting language communities to integrate XML-RPC — gsemones@... (Guerry Semones)
Greetings,
Hi,
"out of the box" by including
Hi,
Hi,
[#17931] Re: Rubygarden Poll — "Lyle Johnson" <ljohnson@...>
> The next poll will be interesting: "I prefer building Ruby GUIs with:"
[#17939] RUBY C++ Extension — jglueck@... (Bernhard Glk)
Does anybody have the source to a WORKING C++ Class exported to RUBY
[#17948] FastCGI for Ruby? — Eli Green <eli.green@...>
Hey there. A few weeks back, when I was searching for Ruby-related stuff, I
On Tue, 17 Jul 2001, Eli Green wrote:
[#17984] waiting for `backquotes` to finish — stephen.hill@... (Steve Hill)
Hi,
[#18018] Broadcasting data — "HarryO" <harryo@...>
Does someone have an example of broadcasting data around a network using
Hi,
> |Does someone have an example of broadcasting data around a network using
[#18023] [ANN] libxslt Rubified! — Wai-Sun Chia <waisun.chia@...>
Hello,
Wai-Sun Chia <waisun.chia@compaq.com> wrote:
I've been learning Ruby, mostly with the Pickaxe book, and it's going
At 05:07 PM 7/19/01 +0900, Wayne Vucenic spewed forth:
[#18041] How to define instance variables from 'C'? — Wai-Sun Chia <waisun.chia@...>
Hello Rubyists,
[#18060] Best way to prevent infinite loops... — Sean Chittenden <sean-ruby-talk@...>
Howdy. What's the best way to prevent infinite loops in Ruby? =20
[#18073] 99 bottles of beer — "Dat Nguyen" <thucdat@...>
[#18080] [ANN]: RubyGems (was Re: Rubygarden Poll) — Ryan Leavengood <mrcode@...>
Bill Kelly wrote:
[#18087] Debugging extensions with gdb — Wai-Sun Chia <waisun.chia@...>
Hello,
[#18098] Exceptions — "Aleksei Guzev" <aleksei.guzev@...>
What about "retry"ing from the line where exception occurred and/or just
[#18101] Re: 99 bottles of beer — grady@... (Steven Grady)
(I believe in Perl circles this is called Golf. This is the first
[#18120] Re: An exercise in minimalism — Chris Moline <ugly-daemon@...>
Here's a first attempt. It weighs in at 66 bytes.
At 12:19 AM 7/20/01 +0900, David Alan Black spewed forth:
>>>>> "A" == A Bull in the China Shop of Life <feoh@fourfuzzies.org> writes:
[#18142] Re: instance variables by name? — "Barnett, Aaron" <aaron.barnett@...>
[#18144] Re: instance variables by name? — "Barnett, Aaron" <aaron.barnett@...>
[#18167] Enabling "super" — "Aleksei Guzev" <aleksei.guzev@...>
(1)
>>>>> "A" == Aleksei Guzev <aleksei.guzev@bigfoot.com> writes:
# tt_mM = rb_define_module("M");
>>>>> "A" == Aleksei Guzev <aleksei.guzev@bigfoot.com> writes:
[#18188] Newbie. Sinking fast. Please help. — Matt <matt@...>
I bought Programming Ruby a number of months back and finally have an opportunity to try out Ruby. However, I can't get it to build. Actually, that's not quite accurate. It builds fine. It won't pass 'make test'.
>>>>> "M" == Matt <matt@greenviolet.net> writes:
On Sat, 21 Jul 2001, ts wrote:
"Serban Udrea" <S.Udrea@gsi.de> writes:
On Sat, 21 Jul 2001, Dave Thomas wrote:
[#18193] Re: 99 bottles of beer — "Dat Nguyen" <thucdat@...>
99.downto(0){|x|w=" on the wall";u="#{x!=0?eval(x.to_s):'no more'}
On Sat, 21 Jul 2001, Glen Starchman wrote:
[#18215] Re: 99 bottles of beer — Will Sobel <will.sobel@...>
On Sat, 21 Jul 2001, Will Sobel wrote:
On Sat, 21 Jul 2001, Avi Bryant wrote:
On Sat, 21 Jul 2001, Avi Bryant wrote:
On Sat, 21 Jul 2001, David Alan Black wrote:
On Sat, 21 Jul 2001, Avi Bryant wrote:
Ok. 151 bytes. No warnings.
On Sat, 21 Jul 2001, Avi Bryant wrote:
On Sat, 21 Jul 2001, Avi Bryant wrote:
[#18244] RCR: Transient instance variables — Michael Neumann <neumann@...>
Hi,
[#18271] Re: 99 bottles of beer — "MikkelFJ" <mikkelj-anti-spam@...1.dknet.dk>
[#18280] Re-loading a modified class definition — "HarryO" <harryo@...>
I was chatting with a friend of mine last night and we were discussing
[#18293] NUM2LONG problem :) — "Aleksei Guzev" <aleksei.guzev@...>
Just now I met a funny problem with NUM2LONG macro.
[#18295] Unicode filenames and Ruby porting — Ned Konz <ned@...>
If someone were to port Ruby to Windows/CE, they would have a little
[#18306] Ruby as opposed to Python? — "Mark Nenadov" <mnenadov@...>
Hello. I have toyed with the idea of trying Ruby out for some time now.
Hi, Mark.
Albert Wagner <alwagner@tcac.net> writes:
In article <ExK67.8849$1V1.797914@e420r-atl2.usenetserver.com>, "Albert
I consider Smalltalk to be "pure" OO. You have objects and you have
Michael Neumann wrote:
Yukihiro Matsumoto wrote:
Yukihiro Matsumoto wrote:
On Mon, Jul 30, 2001 at 05:58:22AM +0900, Paul Prescod wrote:
"Florian G. Pflug" wrote:
[#18328] Re: Ruby Book — Todd Gillespie <toddg@...127.ma.utexas.edu>
Tom Malone <tom@hurstlinks.com> wrote:
[#18344] Newbie question: Data structures in Ruby. — Erik <recon_nospam@...>
Hi all,
[#18351] RCR: String./ to concatenate paths — Michael Witrant <mike@...>
[#18356] Still can't get Ruby to compile... — Matt <matt@...>
Quick recap:
[#18374] OO question — "Tom Malone" <tom@...>
Someone please tell me if this is an inappropriate question for this list -
[#18378] More newbie questions — Matt <matt@...>
OK. Now that I have Ruby installed and apparently (mostly) working, I'm trying my hand at simple things. (At least they seem like they'd be simple enough...)
[#18390] RE: OO question — Will Conant <WillC@...>
Over the weekend, I put together my first real Perl project. Perl, of
On Tue, 24 Jul 2001, Will Conant wrote:
[#18393] Trouble Using FXRuby on cygwin/Windows NT — rgilbert1@... (Robbie Gilbert)
Hi,
[#18395] interfaces? — "MikkelFJ" <mikkelj-anti-spam@...1.dknet.dk>
I am fairly new to Ruby (the DDJ generation), so I may have missed something
[#18408] Re: mod_ruby - persistent variables? — Shugo Maeda <shugo@...>
Hi,
Shugo Maeda <shugo@ruby-lang.org> wrote in message news:<87u202on1y.wl@studly.priv.netlab.jp>...
[#18409] Socket vs. TCPSocket & UNIXSocket — Eli Green <eli.green@...>
Socket.accept returns an array, whereas TCPServer.accept and UNIXSocket.accept
[#18439] Re: OO question — "David Simmons" <pulsar@...>
"Tom Malone" <tom@tom-malone.com> wrote in message
[#18452] Re: Ruby as opposed to Python? — "Dat Nguyen" <thucdat@...>
"Dat Nguyen" <thucdat@hotmail.com> writes:
[#18502] Ruby source code and binaries for Mac OS 9 — Dan Moniz <dnm@...>
Hi everyone,
[#18510] Basic OO Tutorial, Ruby & Perl — clpoda@...
I have prepared a document called rubyboot,
[#18542] Tk Demo Patch — "John Kaurin" <jkaurin@...>
I have not been following comp.lang.ruby much since 1.6.3, so please
[#18545] Re: Ruby as opposed to Python? — Ned Konz <ned@...>
Avdi Grimm wrote:
[#18566] Which database should I use? — Urban Hafner <the-master-of-bass@...>
Hello everybody,
Urban Hafner wrote:
[#18573] ruby versus Perl Magic — markus jais <info@...>
hi,
[#18583] My first Ruby program... :-) — "Bjorn Pettersen" <BPettersen@...>
Well, it's now two days into playing with Ruby, and I wrote my first
[#18608] ruby indenter — Joseph McDonald <joe@...>
> Has anyone written a ruby pretty printer or indent-er in ruby?
Hi,
> Yes. But since I no longer program in emacs lisp, and have been too busy
Hi,
[#18616] IO.popen — "Aristarkh A Zagorodnikov" <xm@...3d.ru>
[#18628] State of the Onion Five — Dave Thomas <Dave@...>
[#18629] exit() called in ruby_run()? — Emil Ong <onge@...>
Hi,
[#18634] Most Sig. NonZero bit, efficiently? — Hugh Sasse Staff Elec Eng <hgs@...>
I see that integer types (Bignum and Co.) support [] to get the kth bit out.
FYI - UDP guarantees delivery of uncorrupted, complete datagrams, or no
[#18699] Possible threading problem under Windows — Dave Thomas <Dave@...>
At 23:22 7/28/2001 +0900, you wrote:
[#18704] HTML Librarys and OOP Design Philosophy — David Tillman <dtillman@...>
[#18724] Problem installing IOWA — "James Britt (ruby-talk ML)" <ruby@...>
I've downloaded the IOWA package, and have tried to install it
[#18762] Guide to using class loading (or similar concepts) in Ruby? — JamesArendt@... (James Arendt)
I'll be quite honest I'm quite a Ruby newbie and haven't had much
In Ruby you load entire files rather than individual classes.
On Mon, Jul 30, 2001 at 08:39:15AM +0900, Nat Pryce wrote:
[#18766] Re: Autoflush backquotes?? — Harry Ohlsen <harryo@...>
> def make( action )
[#18768] Re: Ruby vs. Objective Caml — "MikkelFJ" <mikkelj-anti-spam@...1.dknet.dk>
[#18810] Net::HTTP (downloading an image) — Tobias Reif <tobiasreif@...>
Hi;
[#18826] Get a list of class (not instance) functions — "Florian G. Pflug" <fgp@...>
Hi
[#18832] Ruby164-2.exe — "Albert L. Wagner" <alwagner@...>
Ruby164-2.exe does not work in my Win2k box. Judging by other
[#18851] Rubywin uses hard-coded "/cygdrive" prefix. — Lloyd Zusman <ljz@...>
I just noticed today that the version of `rubywin' that comes with the
[#18863] Re: Who can count change?? — teespy <teespy@...>
[ruby-talk:18422] Re: OO question
On Monday, July 23, 2001, at 09:08 pm, Tom Malone wrote: > Someone please tell me if this is an inappropriate question for this > list - > I don't want to irritate or offend anyone here. > What is the benefit of a true object-oriented language (Ruby), in which > everything is an object, as opposed to, say (arbitrarily) a language > that is > not strictly object-oriented (yet is still popular) like Java? > > Forgive the newbie his ignorance =) > > Tom > Okay, I'll have a bash. Sorry if this is a bit meandering. First, what is a 'true' OO language? There is a story (which I quote from memory, may not have all the details right) about a talk that Niklaus Wirth gave at Apple Computer about Oberon. He was some way into the talk when a chap at the back stood up and said, "So you say that Oberon doesn't have inheritance?" Wirth, "No, that's right" "And it doesn't have..." (insert here various things that Ruby and Smalltalk have, but Oberon doesn't). Wirth agreed. "Then how can you say that it is an Object-Oriented Language?" To which Wirth replies, "Well, who can say what is, and what isn't, an OO language?" Chap says, "I can, I'm Alan Kay, and I invented the term" According to Alan Kay, OO languages are defined by four things: Encapsulation, Information Hiding, Inheritance, and Polymorphism. As someone else pointed out, however, you can use a language that doesn't provide these things and still do OO programming by, essentially, providing them yourself; it is just difficult. On the other hand, Java shows that you can have a language that provides all of them, and throw the advantages away (Encapsulation - what about all those static methods for Maths, instead of encapsulating them with Integer etc, what about Graphics? Information Hiding - common practice of directly accessing instance variables, even in standard library. Polymorphism - strong typing gets in the way, as it takes too narrow a view of 'type'. Inheritance - you can't allow subclasses to access its inherited methods and variables without giving every other (unrelated) class in the package the same privilege). Back to your question, who cares if it isn't 'pure' OO? First, as someone else mentioned, consistency. I don't have to ask myself whether this is an object I can send messages to or a primitive type I pass to functions; I don't have to decide between two different collection types according to the sort of data I have. This means fewer errors. An interesting study looked at the number of Source Lines Of Code (SLOC) per function point required by different languages. As I recall, COBOL was 104, C++ and Java both 53, VB was 28, Smalltalk and Perl both 21. Then they looked at the number of errors in production code produced by programmers experienced in that language. I don't know all the figures, but I remember C++ was about 93, Java 50. This would be in large part because Java was simpler (no multiple inheritance, no templates, etc), and a great deal because of GC. Both are strongly typed, whereas Perl and Smalltalk are not (or rather, Smalltalk is very strongly typed, but it is the object that has type, not the variable reference), so, according to strong typing advocates, they should have more errors per line of code, although there are fewer lines of code to contain errors. In fact, the error rate for Smalltalk was 14 per function point. I haven't seen figures for Ruby, but I would bet it is down there in the low teens as well. Therefore, in a 'pure' OO language, I regard strong typing as a failed experiment. These are errors that should be caught by your unit tests (RUnit, which catch far more errors too). For me, OO is taking to a logical conclusion something that was gaining acceptance for some time before - the value of loosely-coupled code. It combined this with high-cohesion, which makes learning what the system can do easier. Loose coupling has high value in a software system, and OO is perhaps the best way to achieve it. Loose coupling means that maintenance, additional functionality, and refactoring are made easier, and much less error-prone. Hybrid OO languages tend to compromise on loose coupling, viz Java's tendency to expose object structures by allowing direct access to instance variables (and hence the Date mess). With primitive types, you need strong typing for type safety, but this makes refactoring difficult. Code reuse (either by aggregation or inheritance) is certainly important, but not as much as the hype made out. Polymorphism is of great value, and makes use of loose-coupling, to allow you to 'slot in' new classes in subsequent versions of a program without breaking a lot of code (case statements would break, for example). This is a more subtle form of code reuse, but important even so. Alun ap Rhisiart