What Design Pattern To Use?
How would you name a class that has a database and a bunch of related methods?
— Hey Alice, I was wondering if you could help me with one programming question. Namely, the second hard problem in computer science.
— Sure, what are you trying to name?
— I made a class which holds
database and provides a set of methods related to database things.
— Why not name it
— Well, the
Repository is actually a client of this class.
The component I’m…