|
|
Back to UserFriendly Strip Comments Index
|
Okay, my programming friends. | by Didactylos | 2005-05-07 12:13:08 |
|
DAOs are peasy in Perl with DBI. | by LionsPhil | 2005-05-07 14:00:55 |
|
From my University's Wiki, and modified: | by LionsPhil | 2005-05-07 14:32:45 |
|
Don't worry... | by Didactylos | 2005-05-07 15:04:36 |
| Ta. |
by LionsPhil |
2005-05-07 17:21:38 |
It's purely example code, anyway; so it's only dangerous in that someone (possibly me) might do the same when implementing.
The main problems you may have, as I had in the Java version I referred to, is that the likes of getall() will need to be static, and will need a reference to some kind of "Class" object to use reflection to do the instanciation. Actually *getting* it this object proved near-impossible because of the nature of inherited Java static method calls and the visibility (and sharing) of static members (subclasses, and thus sibling subclasses share the same memory for the static variables of their superclass -- it makes sense, but means you can't use them for the class object; if you override with versions for each subclass, the superclass can't see them (natch.)...and so on and so forth and just ARRRGH).
Not sure how much of this is also applicable to .NET. Quite possibly a lot is. |
|
[ Reply ] |
|
|
[Todays Cartoon Discussion]
[News Index]
|
|