The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Okay, my programming friends. by Didactylos2005-05-07 12:13:08
  DAOs are peasy in Perl with DBI. by LionsPhil2005-05-07 14:00:55
    From my University's Wiki, and modified: by LionsPhil2005-05-07 14:32:45
      Don't worry... by Didactylos2005-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]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)