I added a Scala solution since Haskell is already well represented.
Regarding exercises that are easier in OO, I don't think you'll find one
that a good Haskell programmer can't match in a functional style. But if
you make simulation the goal of the exercise (rather than writing a program
that
On 30/05/2012, at 10:16 AM, Eric Rasmussen wrote:
One idea (contrived and silly though it is) is modeling a Courier that
delivers message to Persons. There is a standard default reply for all
Persons, some individuals have their own default reply, and there are
conditional replies based on
Andreas Pauley apau...@gmail.com writes:
Do you know of an exercise where classes would add value? Something
fairly small, roughly similar in size to this exercise.
AFAICR, the motivating example for OO (in Simula) was simulating an
environment where different entities interact - I think the
On 26/05/2012, at 4:16 AM, David Turner wrote:
I don't. I think the trouble is that classes don't add value in exercises of
this size.
This was the key point, I think.
In this example, there wasn't any significant behaviour that could be moved
to superclasses. For that matter, whether a
On Sun, May 27, 2012 at 7:07 PM, Richard O'Keefe o...@cs.otago.ac.nz wrote:
On 26/05/2012, at 4:16 AM, David Turner wrote:
I don't. I think the trouble is that classes don't add value in
exercises of this size.
This was the key point, I think.
In this example, there wasn't any
On 24/05/2012 18:56, Andreas Pauley wrote:
I've used quite a few OO languages. I like to think that I *am*
an OO programmer. But this exercise struck me from the beginning
as something where classes would add nothing but bulk. As a fan
of Smalltalk, I have to say that the Smalltalk version
On Wed, May 23, 2012 at 11:37 PM, Richard O'Keefe o...@cs.otago.ac.nz wrote:
On 21/05/2012, at 5:33 AM, Andreas Pauley wrote:
With this in mind I've created a programming exercise where I imagine
an OO programmer would use an object hierarchy with subtype
polymorphism as part of the solution.
On 21/05/2012, at 5:33 AM, Andreas Pauley wrote:
With this in mind I've created a programming exercise where I imagine
an OO programmer would use an object hierarchy with subtype
polymorphism as part of the solution.
Being unfamiliar with git, I've submitted an AWK answer by e-mail.
I've
Hi all,
I'm in the process of learning how to approach problems from a
functional perspective, coming from an Object Oriented background
(mostly Smalltalk).
One of the general concerns/questions raised when talking to people in
a similar position is:
How do I design/model a problem when I don't
Challenge accepted! I have written a solution in Haskell; please merge :)
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Andreas Pauley apau...@gmail.com писал(а) в своём письме Sun, 20 May
2012 20:33:13 +0300:
I want to see how elegant a solution I can get in a functional
language, given that the problem description is not really elegant at
all. It has a few annoying exceptions to the normal rules, typical of
On Mon, May 21, 2012 at 12:54 AM, Artyom Kazak artyom.ka...@gmail.com wrote:
Andreas Pauley apau...@gmail.com писал(а) в своём письме Sun, 20 May 2012
20:33:13 +0300:
I want to see how elegant a solution I can get in a functional
language, given that the problem description is not really
12 matches
Mail list logo