It's okay to have mechanical, textual duplication (the equivalent of caching values: a repeatable, automatic derivation of one source file from some meta-level description), as long as the authoritative source is well known.
Don't Repeat Yourself = OnceAndOnlyOnce
Original: c2.com