OOD

A practical introduction to DDD and ODD coming from Standard Rails, Part 2

PART 2: QUERY OBJECTS INTRODUCTION Typical responsibilities of a Fat Model. Validating data coming through controllers (validations) Keeping track of the relations between the tables (e.g. has_many) Keeping track of events to be fired in it’s lifecycle (e.g. dependent: destroy, after_saves) Constructing queries on the table (e.g. scopes) Doing calculations on itself or on it’s …

A practical introduction to DDD and ODD coming from Standard Rails, Part 2 Read More »