Django Book 翻译
菜单>:
TOC
返回
原文:
For example, chicagocrime.org offers an RSS feed of recent crimes for every police beat in Chicago. It would be silly to create a separate ``Feed`` class for each police beat; that would violate the Dont Repeat Yourself (DRY) principle and would couple data to programming logic.
翻译:
举个例子,chicagocrime.org提供了一个RSS源以跟踪每一片区域的犯罪近况。如果为每一个单独的区域建立一个 ``Feed`` 类就显得很不明智。这样做就违反了DRY原则了,程序逻辑也会和数据耦合在一起。
备注:
译者: