DDD

code on screen

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

This series is intended for an audience that feels comfortable with the basics of Ruby and Rails and wants to learn how to add practical DDD and OOD principles to their toolkit to improve the quality of their code. INTRODUCTION SINGLE RESPONSIBILITY PRINCIPLE (SRP) A core concept behind good OOD and DDD is SRP: giving …

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

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 »