C
christopher
I am creating a back-end for a website, and in the course of
displaying athe various pages several objects are created which
contain info pulled from a database. These objects persist throughout
the session, and if the database is updated I keep the session object
in sync. To extract the data I often provide several Iterators for
the web designer to use in various ways.
My question is about throwing these iterators away vs creating once
and testing every time to see if they exist. Eventually I imagine I
will profile this, but I am curious what approaches y'all take to
little, disposable objects. Do you keep them if there is a reasonable
possibility of reuse? If there is a best practice I would rather
change 15 methods now rather than 150 later.
Cheers!
-- clh
displaying athe various pages several objects are created which
contain info pulled from a database. These objects persist throughout
the session, and if the database is updated I keep the session object
in sync. To extract the data I often provide several Iterators for
the web designer to use in various ways.
My question is about throwing these iterators away vs creating once
and testing every time to see if they exist. Eventually I imagine I
will profile this, but I am curious what approaches y'all take to
little, disposable objects. Do you keep them if there is a reasonable
possibility of reuse? If there is a best practice I would rather
change 15 methods now rather than 150 later.
Cheers!
-- clh