In < .com>,
mentions:
>I'm getting ready to set up a new web site, and of course I'd like to
>avoid doing a lot of work that's already been done before. I'm
>looking at the list of frameworks that are out there, but there are so
>many. Perhaps someone here can recommend something for my needs.
I know what you mean about there being so many I've looked at them
in the past as well.
>- Basic authentication stuff: The site will require users to login and
>out. There should be your basic authentication stuff: a login form, a
>logout page, and an "I forgot my password" page.
>
>- Minimal magic: Let me code my way. A lot of frameworks seem to be
>built on the idea that I should code the way the framework designers
>code. I don't want to be forced into someone else's idea of The Right
If it weren't for the user authentication issue, I'd probably just
recommend writing your own MVC, seriously. It's not hard and you'll end
up with exactly what you need and nothing else. I've written a few of them
and thus far have never regretted that approach.
If you can work out the authentication, I did a "controversial" blurb about
MVC's here:
http://weird.podro.com/gouf/art/mode...lers_take_two/
(sorry for the crummy site, some day I'll get around to cleaning it up)
Basically, I feel the MVC is such a critical part of any application that
you probably should write it yourself (or at least, go in and literally
/chop out/ portions of someone elses that you don't need)
I'm not pushing for it, but, you're certainly welcome to yank the packages
from that site, customize/strip them and call it your own.
(thus eliminating the need for your users to install anything)
If you do that, you probably *should* strip out the junk you're not using in
the very beginning, it's always easier to add code than it is to remove it,
chopping it in the very beginning can help. I used Config::General, you
may not like that. I've ripped the CGI::Session bit out in the past for
other projects.
Big frameworks carry big bloat, 80% of which you'll probably never use, 20% of
it could be done better if it were tailored for /your/ application. (Just
look at Java.. 60 billion frameworks, yet it's impossible to design a decent
termcap interface that handles SIGWINCH.)
Small frameworks are good, but probably won't operate in a manner that
fits in with your design plans.
I'm not talking a cut-n-paste operation, doing that (without knowing what
it does) is silly and dangerous. I like code re-use as well (Heck, I love
the Config::General module!)
MVC is more of an idea than a framework.
This really isn't intended as flame-bait, I completely respect anyone
who disagrees on this. (I suspect most people will)
Just my $0.02 I suppose if it had to use components from other programs I might
be a little less down on them, I don't hate them or anything, I just think
we've gone a little overboard with them.
Jamie
--
http://www.geniegate.com Custom web programming
Perl * Java * UNIX User Management Solutions