[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:02234] Re: Ruby and Eiffel

From: Andrew Hunt <andy@...>
Date: 2000-03-29 02:45:45 UTC
List: ruby-talk #2234
Hal writes:

    >My impression is that these two languages don't have
    >much in common. However, the principle we were 
    >discussing is one that Bertrand Meyer stressed in his
    >book _Object-Oriented Software Construction_ -- an
    >excellent book, though a few years out of date now.

The second edition came out in 1997, but it does have 
an "older" feel to it -- Eiffel isn't very dynamic, web-enabled
or sexy in that regard.

    >The technique of programming "by contract" is a very
    >appropriate method overall, but it is not unique to
    >Eiffel. Oh, Eiffel's design certainly facilitates it, 
    >but it can be done in other languages.

Well, that brings up an interesting question.  What do
you think about implementing Design By Contract in a 
non-staticaly typed language such as Ruby?  I've toyed around
with several implementations of DBC in Ruby, and once Dave
and I get a bit more of the Ruby book finished I'll look at
it again.

But would that be a usefull feature to have in Ruby?  

/\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)
--

In This Thread

Prev Next