DRY is often confused as "don't repeat code," which was never the intended meaning.

DRY is about knowledge. Don't repeat knowledge.

You can repeat identical lines of code that don't repeat or leak knowledge.

You'll find the proper definition of the principle, formulated by Andy Hunt and Dave Thomas, in their book "The Pragmatic Programmer" as quoted here:

"Every piece of knowledge must have a single, unambiguous, authoritative representation within a system."

@VaughnVernon I have seen a lot of horrible complex code, written in the name of DRY.

I’ve also seen simple code being refactored into complex code because of DRY.

It is certainly not my favorite principle. No matter if it’s misunderstood, it has caused me a lot of headache.

@mikaellundin Inept programmers abound. That's not the fault of DRY's or the fault of any other sound guidance.
@VaughnVernon well no. If people doesn’t understand the principle, it’s not the people’s fault.
@mikaellundin So, I don't understand F#, but I used F# anyway to deliver a system. That system is really horrible, and you hate it. Yet, it's not my problem. The fault is with F# because I didn't understand F#. Cool, and thanks for clarifying!
@VaughnVernon @mikaellundin Kudos for using F#πŸ‘πŸ», has your book implementing strategic monolith* got cancelled or will it be published someday?
@spingee @mikaellundin You know, being a series editor has engulfed my authoring and any time that could be used for that. I took one month on a writer's retreat at Solana Beach 1.5 years ago and did nothing else but write, eat, and sleep. I wrote the first three chapters and haven't had a moment since. But I've moved another 5 books to production, and at least 3 of those have been published since. Susanne Kaiser's will be published soon. Alex Lawrence's book is very close to production ready.
@spingee @mikaellundin I feel good about that, but financially, it was one of the worst decisions of my career. I earn roughly $1,000 to $2,000 per year (and only 2 years at that after 5 years invested), and I can't write my own books. My idea was to write my own series of books, but Pearson pitched the signature series to me instead. So, here we are.