CSC/ECE 517 Fall 2009/wiki3 4 br

From Expertiza_Wiki
Revision as of 01:26, 9 November 2009 by Ncsueng (talk | contribs)
Jump to navigation Jump to search

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

File: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.