Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: DBIx::Simple

by lachoy (Parson)
on Mar 28, 2002 at 13:29 UTC ( [id://154953]=note: print w/replies, xml ) Need Help??


in reply to DBIx::Simple

Not to be rude, but in addition to EZDBI there are also DBIx::Abstract, DBIx::DWIW, DBIx::Easy. Not to mention the full-fledged frameworks like (ahem!) SPOPS, Class::DBI, Alzabo, Tangram, etc.

I think writing a DBI wrapper is becoming one of those tasks every Perl programmer undertakes, like writing a templating system :-)

Chris
M-x auto-bs-mode

Replies are listed 'Best First'.
Re: Re: DBIx::Simple
by Juerd (Abbot) on Mar 28, 2002 at 14:03 UTC

    Not to be rude, but in addition to EZDBI there are also DBIx::Abstract, DBIx::DWIW, DBIx::Easy.

    EZDBI: See my reply to the other post mentioning it.

    DBIx::Abstract: aims at SQL abstraction, not just making things easier. I often find myself wanting to write queries myself.

    DBIx::DWIW: New to me (again, a lowzy name, just like EZDBI), but is MySQL specific and seems not to be capable of returning rows one at a time.

    DBIx::Easy: Another SQL abstractor.

    So there isn't really competition, just different approaches to using DBI.

    I think writing a DBI wrapper is becoming one of those tasks every Perl programmer undertakes, like writing a templating system :-)

    That's why you see a lot of CGI scripts with sub query { ... } and sub dbopen { ... } in them. This just proves that DBI itself isn't easy enough.

    I've written multiple DBI wrappers myself, and until recently, I created a new one for every project. I thought about how I would really like it, and how error handling in between prepare, execute and fetch* could be done, so that you can safely stack method calls and discover it went wrong later. The result is presented to you in this thread.

    U28geW91IGNhbiBhbGwgcm90MTMgY
    W5kIHBhY2soKS4gQnV0IGRvIHlvdS
    ByZWNvZ25pc2UgQmFzZTY0IHdoZW4
    geW91IHNlZSBpdD8gIC0tIEp1ZXJk
    

      Don't get me wrong -- I think you should submit this to CPAN. The module is well-written, documented and serves a specific purpose. IMO competition is good, and one of the unfortunate things about CPAN modules is that many of them are heavily upgraded for ~6 months and then abandoned. If you maintain your module for the long-haul, keeping up with upgrades to the DBI, then you'll be a step ahead in my book.

      That said, I think the comparisons you draw with the other modules are distinctions without differences. They do much the same tasks but just in different ways. Some ways might fit the way a developer approaches a problem, some might not. None of these modules fit your approach enough to contribute to it rather than develop your own. No problem.

      Fortunately, there's not an all-powerful gatekeeper to CPAN who gives the thumbs-up or thumbs-down to a module. IMO this is one of the features of Perl that makes it organically vital. The fact that there are so many DBI wrappers (and templating modules) means this is a problem everyone tackles, and problems like this are often too generic to have one solution. This might annoy or turn away developers from other languages, particularly ones that have been handed down from the mount (Java), but so what?

      Keep up the great work!

      Chris
      M-x auto-bs-mode

Re: Re: DBIx::Simple
by tmiklas (Hermit) on Mar 28, 2002 at 14:28 UTC
    ++ Chris, but...
    maybe there is someone who will 'invent' the same old circle in his own - maybe for some of us *better* way...
    As for me DBI is ok - i used to it ;-) but i still use the templating module written by my friend (also ! @CPAN). None of CPAN modules :-( gave me such ease of use and functionality. Just K.I.S.S. ;-)

    Greetz, Tom.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://154953]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-04-19 10:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found