I am going through this OO design course: https://www.coursera.org/learn/object-oriented-design/home/welcome and starting to look at the use of CRC cards. (class responsibility collaborators).
I wanted to apply this to one of my own projects to get some experience using the technique. I have previously written a sqlite wrapper class here:
Yes I know this is being done the wrong way round but to get some practice I wanted to use something I already know. So if I wanted to create a crc card for this class, would something like this be appropriate:
class: sqlite responsibilities: insert (create) update (update) delete (delete) select (read) collaborators: sqlite3 c library
The next thing to consider is the other classes. Now originally I wrote this without using crc cards and I came up with the following classes:
cgi_request cgi_response model controller [didn't need a view class] I used the sqlite3.h/c c library a main function
but mvc is quite technical. Would something like that come out of doing a crc session?
If I had used crc modelling in the first place, is it likely I would have come up with the same design?