What Design Pattern To Use?
How would you name a class that has a database and a bunch of related methods?
6 min readJun 22, 2020
— 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 Repository
?
— Well, the Repository
is actually a client of this class.
The component I’m…