CSC/ECE 517 Fall 2009/wiki3 4 br: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
Topic: DRY principle for data | Topic: DRY principle for data | ||
Most of the literature on the DRY principle relates to code. But the principle also applies to data. Survey the issues related to copying the same data, and give reasons (e.g., caching) why it might sometimes be desirable, and how one should decide where it is helpful not to follow this general rule. | Most of the literature on the DRY principle relates to code. But the principle also applies to data. Survey the issues related to copying the same data, and give reasons (e.g., caching) why it might sometimes be desirable, and how one should decide where it is helpful not to follow this general rule. | ||
[http://en.wikipedia.org/wiki/DRY ''DRY'' 3] (or Don't Repeat Yourself) describes ... | |||
== '''DRY principle for data''' == | |||
__TOC__ | |||
=='''An overview of the concepts'''== | |||
==='''Don't Repeat Yourself'''=== | |||
[[Image:DRY.jpg]] | |||
==='''DRY principle - related to code'''=== | |||
:*'''''Example''': DRY | |||
class Person | |||
attr_accessor :name | |||
end | |||
==='''DRY principle - related to data'''=== | |||
===='''DRY principle - bad when used with data'''==== | |||
===='''DRY principle - good when used with data'''==== | |||
=='''Conclusion'''== | |||
=='''References'''== | |||
''' | |||
1. | |||
2. | |||
3. | |||
4. | |||
5. | |||
6. | |||
7. | |||
8. | |||
9. |
Revision as of 01:26, 9 November 2009
Topic: DRY principle for data Most of the literature on the DRY principle relates to code. But the principle also applies to data. Survey the issues related to copying the same data, and give reasons (e.g., caching) why it might sometimes be desirable, and how one should decide where it is helpful not to follow this general rule.
DRY 3 (or Don't Repeat Yourself) describes ...
DRY principle for data
An overview of the concepts
Don't Repeat Yourself
- Example: DRY
class Person attr_accessor :name end
DRY principle - bad when used with data
DRY principle - good when used with data
Conclusion
References
1.
2.
3.
4.
5.
6.
7.
8.
9.