什么是活动记录 - 设计模式或模块? [英] What is Active Record - design pattern or module?

查看:128
本文介绍了什么是活动记录 - 设计模式或模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

这篇关于什么是活动记录 - 设计模式或模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆