什么是活动记录 - 设计模式或模块?

什么是活动记录 - 设计模式或模块?

问题描述:

基本上什么的设计模式,模块和我们使用一些其他术语之间的差别。

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

这是一个相当难以回答的问题。

That's quite a difficult question to answer.

这要看,基本上是这样。

It depends, basically.

活动记录是两个,它是在传统意义上,由一种设计模式HREF =htt​​p://en.wikipedia.org/wiki/Martin_Fowler相对=nofollow> Martin Fowler的中的的企业应用架构模式。但是,ActiveRecord的(注意没有空格)可以被归类为一个模块,因为它的活动记录设计模式的实现。

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