What is Active Record - Design Pattern or Module?

Basically what's the difference between design pattern, module and some of the other terms we use.

+2


a source to share


2 answers


This is a pretty difficult question to answer.

It mostly depends.



Active entry is both, it is a design pattern in the traditional sense as described by Martin Fowler in Enterprise Application Architecture Patterns . But, ActiveRecord (note the space) could be classified as a module, as it is an implementation of the Active Record design pattern.

+3


a source


Just to give a different perspective, ActiveRecord: Ruby - Hibernate: Java. Both are ORM Framework and solve the recurring problem of saving the database and converting data from RDBMS to OO model. So you can call it both a design pattern and a module, or more specifically, an ORM.



0


a source







All Articles