Re: Whose Fish?
- From: topmind <topmind@xxxxxxxxxxxxxxxx>
- Date: 9 May 2007 10:58:34 -0700
On May 9, 10:43 am, Jordan Marr <jnm...@xxxxxxxxxxx> wrote:
http://www.coudal.com/thefish.php
I was once given this question at a job interview (my boss liked to
stress people out). Although I didn't finish the question during the
interview, I still got the job.
So this weekend I created an OO program that solves the problem within
1 to 29 seconds, depending on what order my attributes are initially
entered.
Mine is totally OO and uses no relation database at all, however, it
seems like a great problem to throw at a relational database, which I
would guess may be able to solve it faster.
Any takers? <ahem> ;^)
Jordan
Personally, I don't think these kinds of puzzles are very useful for
comparing the real-world utility of paradigms. Perhaps they are good
for training newbies or practicing concepts, but *not* for comparing
the relative *value* of techniques in a realistic setting/domain.
They are sort of analogous to slam-dunk contests to the game of
basketball. The best slam-dunker is not necessarily the best player. I
have similar complaints about the shape, animal, and device-driver
examples heavily used in OO books.
(BTW, I submitted my source-coded version of Robert C. Martin's
payroll example here a few weeks ago in an attempt to spark debate on
a semi-realistic example.)
-T-
.
- Follow-Ups:
- Re: Whose Fish?
- From: Jordan Marr
- Re: Whose Fish?
- From: Jordan Marr
- Re: Whose Fish?
- References:
- Whose Fish?
- From: Jordan Marr
- Whose Fish?
- Prev by Date: Re: OO Books for newbies?
- Next by Date: Re: Whose Fish?
- Previous by thread: Whose Fish?
- Next by thread: Re: Whose Fish?
- Index(es):