Pass data to a variable

Why should we delete it?

Actually I think that the block is a valid pattern specifically for the Ruby language!

I really appreciate your input and I hope we can get this moving...

Cheers,

Enrique Comba Riepenhausen

···

On 8 May 2007, at 15:02, Robert Dober wrote:

On 5/8/07, Enrique Comba Riepenhausen <ecomba@mac.com> wrote:

Hey Robert,

you are absolutely right with the statement that a design pattern is
language independent, still the way to implement a specific design
pattern differs from language to language...

Take the Observer for example. In Java for instance no one would
think to implement this pattern from scratch (unless there is a very
specific need not covered by the language) as it is available in the
language (aka Observer and Observable).

I do strongly believe that we would profit in general by a body of
knowledge in Ruby Patterns as there might be even patterns that only
apply to Ruby development... and for those patterns that are commonly
known (Visitor, Strategy, Factory Method, etc) we still can build
some advice for other novice developers that need advice...

Thanks a lot for your input!

Cheers,

Sure I did not say the contrary, go ahead and delete my entry about
blocks or I can do it myself if you are busy.

Cheers
Robert

Enrique Comba Riepenhausen

--
You see things; and you say Why?
But I dream things that never were; and I say Why not?
-- George Bernard Shaw

Completely agree with you, still patterns solve a problem in a given
context and obviously (if we are talking about developing software)
in different languages. I don't believe this problems don't exist
just because the language is called Ruby or Java or any other name...

The main idea is to capture the essence of the language and to see
which patterns apply in with way in the language. I posted an
implementation of the Factory Method yesterday in the pattern
catalogue and I made it (on purpose and maybe a bit of lack in Ruby
experience) as it is described in the book. I am sure there is a
Ruby way to do exactly that in a nicer, more elegant way, but exactly
that is what I want to achieve. I would love that people can see the
AHA, WOW. In the book (or other languages) this seemed so difficult
and in Ruby I can do this in a bliss... :slight_smile:

Cheers,

Enrique Comba Riepenhausen

> Another take on Ruby Patterns - you might be better off looking for
> Ruby **idioms**. Programming Java and programming Ruby can be very
> different experiences, and it's always good to approach a new topic
> with the mind of a beginner. Techniques that would be impossible or
> insane in Java are sometimes the best way to do something in Ruby.

A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

Posting style - Wikipedia

Just a friendly tip :slight_smile:

Ok, point taken :stuck_out_tongue:

···

On 9 May 2007, at 10:25, Felipe Contreras wrote:

On 5/9/07, Enrique Comba Riepenhausen <ecomba@mac.com> wrote:

On 9 May 2007, at 04:21, Giles Bowkett wrote:

--
Felipe Contreras

Why should we delete it?

Donnu I have difficulties to grasp the idea...

Actually I think that the block is a valid pattern specifically for
the Ruby language!

I guess so :wink:

I really appreciate your input and I hope we can get this moving...

... but maybe it will become clearer in the future.

Cheers,

Robert

···

On 5/8/07, Enrique Comba Riepenhausen <ecomba@mac.com> wrote: