E
Einar Høst
Hi,
I'm writing a data layer for an app my company is developing. I'm thinking
about wrapping up the basic data access object in two decorator objects: one
to provide error checking on parameters, and one to provide generic logging
of exceptions. Is that a good idea or not? It adds some indirection, but at
the same time the code becomes less cluttered. And the decor can even be
"peeled" off at a later time if considered superfluous.
Any thoughts?
I'm writing a data layer for an app my company is developing. I'm thinking
about wrapping up the basic data access object in two decorator objects: one
to provide error checking on parameters, and one to provide generic logging
of exceptions. Is that a good idea or not? It adds some indirection, but at
the same time the code becomes less cluttered. And the decor can even be
"peeled" off at a later time if considered superfluous.
Any thoughts?