Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Moose and AUTOLOAD

by stvn (Monsignor)
on Nov 03, 2010 at 15:41 UTC ( #869263=note: print w/replies, xml ) Need Help??


in reply to Moose and AUTOLOAD

"handles" would not work too, because I know the eventual method names only at runtime and they may change.

Moose doesn't have anything to help you out with this, and honestly, changing method list at runtime is a serious design smell. You don't want the method list of RecordSet to be continually changing every time you make a new instance of a different table.

Also, why aren't you using one of the perfectly good ORMs out there? DBIx::Class? Fey::ORM? Rose::DB::Object?

-stvn

Replies are listed 'Best First'.
Re^2: Moose and AUTOLOAD
by rootcho (Pilgrim) on Nov 04, 2010 at 15:05 UTC
    I like ORM, but they are not well suited for every task. I rather steal some of the ideas and make my own. ;)

    Which is lighter and more pure-SQL-query centric, with all the benefits and drawbacks of having more control.

    thanx

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://869263]
help
Chatterbox?
[Discipulus]: if so the previous error is a bit misleading, anyway
[shmem]: well, previous to that << was always treated as the left-shift operator
[Eily]: or the here-doc operator
[Eily]: which is actually how it is parsed in this case
[shmem]: older versions of perl can't guess that "use of <<>> may be implemented someday" :D
Discipulus how much wise my brothers are? ;=)
[karlgoethebier]: thanks ;-
[karlgoethebier]: ...to all for reading the manuals

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2017-07-21 09:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (320 votes). Check out past polls.