Hi Monks!
I'm writing a script at the moment which takes a couple of data structures and builds some objects from them. The data structures are setup information for a database and data to be input into that database respectively
My question is do i make a decision on the data before choosing to bless each set of data as a particular class?
Or am i better off blessing the objects as a parent class regardless, and then deciding which "subclass" the objects belong to and reclassifying them?
Even if i choose the first route, i think i'm going to have to change the class of the data objects eventually. so what's the best way to go about it? I know i could just "bless" the object again with a different class but it feels a bit funky!
Any help appreciated as always!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.