I think a couple valid uses for mocks/stubs is the Time thing he mentioned but probably the most common use is mocking the behavior of sending and receiving data from a webservice such as Facebook for example.
I don't like that STI is an acceptable way of dealing with derived tables. In his example there should be a customers table that has a person_id that references people.id and idealy it would be great if Customer could still derive from Person instead of ARB.
I think a couple valid uses for mocks/stubs is the Time thing he mentioned but probably the most common use is mocking the behavior of sending and receiving data from a webservice such as Facebook for example.
DJTripleThreat78 1 year ago
I don't like that STI is an acceptable way of dealing with derived tables. In his example there should be a customers table that has a person_id that references people.id and idealy it would be great if Customer could still derive from Person instead of ARB.
DJTripleThreat78 1 year ago