For Programmers: Free Programming Magazines  


Home > Archive > Extreme Programming > March 2004 > But what if I *want* a database?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author But what if I *want* a database?
Robert Atkins

2004-03-18, 6:53 pm

It appears to me that the church of YAGNI is strictly against using
databases until data volume requirements insist upon it. But what if the
central algorithm of my program is declarative in nature and I *want* to
express it in SQL?

Should I try harder with apache Commons set operators, or just use a
database?

Cheers, Robert.
Phlip

2004-03-18, 6:53 pm

Robert Atkins wrote:

> It appears to me that the church of YAGNI is strictly against using
> databases until data volume requirements insist upon it. But what if the
> central algorithm of my program is declarative in nature and I *want* to
> express it in SQL?
>
> Should I try harder with apache Commons set operators, or just use a
> database?


Delay expensive decisions until the last cheap moment. Installing an iron
hog like Oracle, even if your site has already paid for it, increases your
project's cost of ownership.

Get MySQL, or even something smaller. There must be in-memory SQL evaluators
out there. Is that what apache Commons is?

Next, your brain cells' synapses have probably been conditioned to enter
requirements and output SQL statements automatically, without conscious
intervention. >That< is the effect YAGNI challenges.

--
Phlip
http://www.xpsd.org/cgi-bin/wiki?Te...tUserInterfaces


Robert C. Martin

2004-03-18, 6:53 pm

On 11 Mar 2004 12:16:34 GMT, Robert Atkins
<ratkins_usenet@yahoo.com.au> wrote:

>It appears to me that the church of YAGNI is strictly against using
>databases until data volume requirements insist upon it. But what if the
>central algorithm of my program is declarative in nature and I *want* to
>express it in SQL?


Then do so. The church of YAGNI never got it's license, and the
zealots decided to adopt RUP instead. All they left behind is the
principle of keeping things as simple as you can, for as long as you
can. This is a good principle in general. However, if you want a
database, use one. Sometimes a database is the simplest choice.


Robert Atkins

2004-03-18, 6:54 pm

In article <84_3c.57799$lH1.36471@newssvr33.news.prodigy.com>, Phlip wrote:
>
> Get MySQL, or even something smaller. There must be in-memory SQL evaluators
> out there. Is that what apache Commons is?


It's a personal project, and I was thinking hsql. apache Commons has
some Collections framework decorators which add more set operations than
the ones provided by the standard Java libraries.

> Next, your brain cells' synapses have probably been conditioned to enter
> requirements and output SQL statements automatically, without conscious
> intervention. >That< is the effect YAGNI challenges.


This is probably true.

Cheers, Robert.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com