jargon

Design patterns·Objects and the database between them

one method reads the rows, does all the logic and writes them back, and it is four hundred lines long.

Transaction script

Also calledtransaction script pattern, procedural service method

Organising business logic as a procedure per use case, working directly against the data. It is the honest right answer for a simple application, and it is what almost every codebase starts as; the failure comes later, when the tenth script needs the same discount rule and copies it. Fowler's original point stands: choose it deliberately for simple logic rather than arriving at it by default.

Commonly confused with