Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Quite confuse about using Class::DBI to implement Data Access Objects and Value Objects Design Patterns

by Ovid (Cardinal)
on Aug 10, 2005 at 19:53 UTC ( [id://482740]=note: print w/replies, xml ) Need Help??


in reply to Quite confuse about using Class::DBI to implement Data Access Objects and Value Objects Design Patterns

Be sure to ask him to submit all requests as UML diagrams, in triplicate, with TPS cover sheets and circles and arrows and a diagram on the back of each one.

On the other hand, if you want to keep your job, maybe digging a little deeper is the way to go here. Maybe your architect knows what he's doing. Maybe he has solid, concrete reasons for asking you to do this. There's also the possibility that he's just parroting what he knows (I've had to work with such a boss. It's not fun.) Does the architect understand the strengths and weaknesses of Perl? What works well in one is frequently a horrible mistake in the other. The languages do not translate easily into one another.

A classic examples is Lucene. It's Java. It's powerful. It's fast. Then it was ported very faithfully to Perl and called Plucene. In Perl it doesn't scale well because it's so darned slow. Does this mean Perl can't handle stuff like this? No. Search::KinoSearch is a new search engine written in Perl and it doesn't have the same performance problems.

Personally, I am very leery of Perl or Java gurus trying to be the architect on the project written in the other's language. I know Java, but I'd hardly qualify as an architect. I'd be going around asking silly questions like "why don't you just build a bunch of custom closures for callbacks?" And the Java guys would rightfully snear and make posts very similar to yours.

I know that doesn't answer your question (I'm hopeful that someone else can), but I thought it might shed a little light on another way of looking at the situation.

Cheers,
Ovid

New address of my CGI Course.

Replies are listed 'Best First'.
Re^2: Quite confuse about using Class::DBI to implement Data Access Objects and Value Objects Design Patterns
by monsieur_champs (Curate) on Aug 10, 2005 at 22:16 UTC
    Be sure to ask him to submit all requests as UML diagrams, in triplicate, with TPS cover sheets and circles and arrows and a diagram on the back of each one.

    Thanks for the recommendation. I'm really well-served on bureaucracy, believe me. The client have a CMM L2 certification and all projects must fulfill a lot of bureaucratic requirements. :-(

    On the other hand, if you want to keep your job, maybe digging a little deeper is the way to go here. Maybe your architect knows what he's doing. Maybe he has solid, concrete reasons for asking you to do this.

    Not really. He have a Java based mindset, just that. It's not his fault, he actually works with Java. perrin and izut arguments are enough to convince him about the non-need of VOs for implement a good DAO in Perl.

    The Lucene and Plucene examples

    Thanks for those. They were nice and very illustrative. It started to show the light to my poor architect. :-) May the gods bless you for this example and him for accepting it as a good starting point.

    And the Java guys would rightfully snear and make posts very similar to yours.

    Oh, please! I'm not sneaking. I'm posting this with the agreement of my architect. We are good friends, and both of us are having fun with this project. :-)

    BTW, thank you very much for you point of view, it was quite useful. And thanks to perrin and izut for pointing good solutions for avoid extra coding and still having high quality Perl code.

      In reading my original response, I see it was a bit more snarky than it should have been. I fear that I've had to deal with "Java is the Best" folks before and I have a bit of a knee-jerk reaction when I get a whiff of someone who's not thinking beyond their particular favorite tool (including Perl). It sounds like you have a good situation going there where both of you can win. That sounds great.

      If your architect read my post, extend my apologies if I offended. That wasn't intentional!

      Cheers,
      Ovid

      New address of my CGI Course.

Re^2: Quite confuse about using Class::DBI to implement Data Access Objects and Value Objects Design Patterns
by perrin (Chancellor) on Aug 10, 2005 at 20:19 UTC
    Sort of off-topic, but I recommend SWISH-E as a search engine. It's easy, very fast, scales well enough for all "normal" uses (we search tens of thousands of docs with it), and has a nice Perl API.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-03-29 05:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found