[#1649] Re: New Ruby projects — Yukihiro Matsumoto <matz@...>
The following message is a courtesy copy of an article
[#1672] Re: Ruby 1.4 stable manual bug? — Yukihiro Matsumoto <matz@...>
The following message is a courtesy copy of an article
[#1673] Re: Possible problem with ext/socket in 1.5.2 — itojun@...
[#1694] Conventions for our Ruby book — Dave Thomas <Dave@...>
[#1715] Install postgresql support — Ikhlasul Amal <amal@...>
Hi all,
Hi,
[#1786] Is this a bug? — Clemens Hintze <clemens.hintze@...>
(mailed & posted)
[#1814] Objects nested sometimes. — Hugh Sasse Staff Elec Eng <hgs@...>
I am attemptiong to write a package which consists of a workspace
[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>
Hi all,
Hi,
Yukihiro Matsumoto writes:
Hi,
Hi,
[#1834] enum examples? — Hugh Sasse Staff Elec Eng <hgs@...>
Has anyone any examplse of using the Enumerable module? I've had a
[#1844] Minor irritation, can't figure out how to patch it though! — Hugh Sasse Staff Elec Eng <hgs@...>
I was considering how difficult it would be to patch Ruby to accept
[#1889] [ruby-1.5.3] require / SAFE — ts <decoux@...>
[#1896] Ruby Syntax similar to other languages? — "David Douthitt" <DDouthitt@...>
From: Yukihiro Matsumoto <matz@netlab.co.jp>
[#1900] Enumerations and all that. — Hugh Sasse Staff Elec Eng <hgs@...>
Thank you to the people who responded to my questions about Enumerated
Hugh Sasse Staff Elec Eng <hgs@dmu.ac.uk> writes:
On 16 Mar 2000, Dave Thomas wrote:
[#1929] Re: Class Variables — "David Douthitt" <DDouthitt@...>
| "David Douthitt" <DDouthitt@cuna.com> writes:
[#1942] no Fixnum#new ? — Quinn Dunkan <quinn@...>
Ok, I can add methods to a built-in class well enough (yes I know about succ,
[#1989] English Ruby/Gtk Tutorial? — schneik@...
Hi,
[#2022] rb_global_entry — ts <decoux@...>
[#2036] Anonymous and Singleton Classes — B_DAVISON <Bob.Davison@...>
I am a Ruby newbie and having some problems getting my mind around certain
[#2069] Ruby/GTK+ question about imlib --> gdk-pixbug — schneik@...
[#2073] Re: eval.rb fails — "Dat Nguyen" <thucdat@...>
The doc is fine, this happens only if you try to execute 'until' block
On Wed, 22 Mar 2000, Dat Nguyen wrote:
[#2084] Scope violated by import via 'require'? — Clemens Hintze <c.hintze@...>
Hi,
[#2104] ARGF or $< — Hugh Sasse Staff Elec Eng <hgs@...>
Has anyone any examples of how to use ARGF or $< as I cannot find much
Hi.
[#2165] Ruby strict mode and stand-alone executables. — "Conrad Schneiker" <schneiker@...>
Some people want Ruby to have a strict compile mode.
[#2203] Re: parse bug in 1.5 — schneik@...
[#2212] Re: Ruby/Glade usage questions. — ts <decoux@...>
>>>>> "m" == mrilu <mrilu@ale.cx> writes:
[#2241] setter() for local variables — ts <decoux@...>
[#2256] Multiple assignment of pattern match results. — schneik@...
[#2267] Re: Ruby and Eiffel — h.fulton@...
[#2309] Question about attribute writers — Dave Thomas <Dave@...>
Clemens Hintze <c.hintze@gmx.net> writes:
[ruby-talk:02143] Re: Scripting and OO -- thought question
Hal Fulton writes:
>
>Here's an opinion question for you all.
>His interest level was mild. He said that he
>thought object orientation was a good thing in
>general, but that for the things scripting
>languages are generally used for, it's not that
>useful.
>
>In his words, "If I were going to write a 60,000
>line chess program or something, I wouldn't do it
>in Perl or any other script; I'd use Java or C++
>or something. And if I were doing something like
>a filter, like 'munging' a text file, I wouldn't
>really need OO."
He misses a very important point -- it's those stupid little
10 line scripts that end up as mission critical bits of
software, and they are usually never designed, never documented,
never put through QA, etc.
You never know how a "trivial" little script may grow; even
evolving from a 10 line script to a 20 line script OO will
help you. It helps to focus your thinking.
>I think I see his point; but perhaps one reason he
>would not use a scripting language for a large
>project is that he simply has never SEEN a scripting
>language powerful enough for large projects.
I think the term "scripting" language is demeaning, Ruby is
far more than that. It happens to be interpreted, but so what.
Ruby is a convenient OO language.
>There is also the speed issue; but he cites Java as
>a "real" language, and we are certainly not
>guaranteed that it will be speedy on every platform.
Java is not a real language, on several counts. Popular, yes.
But it is not type safe, it is not fully OO, it is awkward as
hell to write some of the most basic OO style code, inner classes
are an ugly hack, ... I could go on.
Speed of execution is a minor issue in the end -- if you find
a bottleneck, optimize it in C code. Development and design time
matters, but all of these are dwarfed by the amount of time
and money spent on maintenance.
If OO makes that 10 line script even *slighty* more maintainable,
you can realize a huge savings in maintenance costs over the
life of the system.
I'd also tell him that code is written once, but read hundreds,
even thousands of times. Thus I would tend to think
readability and understandability should be considered to be
much more important (which leaves out C++ :-)
That's what *I'd* tell him; your mileage may vary :-)
/\ndy
--
Andrew Hunt, The Pragmatic Programmers, LLC.
Innovative Object-Oriented Software Development
web: http://www.pragmaticprogrammer.com email: andy@pragmaticprogrammer.com
--
Our New Book: "The Pragmatic Programmer" Published by Addison-Wesley Oct 1999
(see www.pragmaticprogrammer.com/ppbook)
--