Re: How to clean up this code?

Ar Chron
Fri, 28 Mar 2008 15:56:38 -0000

Patrick Doyle wrote:

> I''ve argued myself in and out of that position a couple of times.
...
> But if the more common practice is to put data like that in a model, then
> I would like to follow the common practice.
>

I don''t know if it is common practice or not, but the decision point
for
me is that I "own" the application, and the users "own" the
data.  If I
can drive a portion of the my application from data they provide, I can
delegate maintenance of that data to the person who owns it.

If the document gods wanted 50 more document categorizations so we now
span 0..149, or suddenly decided that the old 10..19 group is really two
groups, 10..15, and 16..19 with new names, I''d rather provide them a
simple interface so they can maintain their own data than go in tweaking
my code.

After all, us developers want to do the cool stuff, and what is
essentially a data entry task is far from cool... ;)
--
Posted via http://www.ruby-forum.com/.