J
Jona Gold
I have an argument with a senior programmer here. He says
I shouldn't have special configuration for the part of
the code that's in the library. But isn't that the whole
point of libraries: that you can separate concerns, that
you can change the library, without needing to recompile
all the applications that use it?
My library needs a database DSN. Why should application
initialize it with DSN, instead of special configuration
object? If requirements change, I can simply change or
add settings in the configuration, recompile the library
and leave the applications untouched.
What should I say on the next meeting so that this guy will
stop pushing his twisted design on me? Please help.
Regards, Jona
I shouldn't have special configuration for the part of
the code that's in the library. But isn't that the whole
point of libraries: that you can separate concerns, that
you can change the library, without needing to recompile
all the applications that use it?
My library needs a database DSN. Why should application
initialize it with DSN, instead of special configuration
object? If requirements change, I can simply change or
add settings in the configuration, recompile the library
and leave the applications untouched.
What should I say on the next meeting so that this guy will
stop pushing his twisted design on me? Please help.
Regards, Jona