低重复 不要重复自己(Don't Repeat Yourself,DRY)是Rails社区的一个常见术语。Rails框架委员会使用通常看起来像是Ruby语言的扩展的方法来把重...
基于140个网页-相关网页
代码整洁之道-卓越软件代码质量体系最佳实践公开课-... ... “一旦了解在程序设计中如何使用变量,他就掌握了程序设计的精华。”-Dijkstra 不要重复自己DRY—Don"t Repeat Yourself Principle 魔法数(Magic number) ...
基于10个网页-相关网页
不要重复你自己 Don't Repeat Yourself ; DRY--Don't Repeat Yourself ; don't repeat yourself -
如果遵循“不要重复自己”原则,您会了解单一副本是权威副本。
If you "don't repeat yourself," you know that the single copy is the canonical copy.
这是 Rails 的 DRY(不要重复自己)原则的基本例子。
This is a prime example of Rails' DRY (Don't Repeat Yourself) principle.
您可能还希望能够尽可能多地坚持DRY(不要重复自己)这个原则。
You also want to adhere to the DRY (Don't repeat yourself) principle as much as possible.
应用推荐