top | item 29907976

(no title)

gfunk911 | 4 years ago

Exactly. I find it helps to also state that it doesn't mean "Don't Repeat Characters"

discuss

order

dllthomas|4 years ago

I've pointed out in the past that if the characters you're deduplicating don't actually have the same meaning, you're just compressing your code; I've been trying to popularize labelling that kind of aggressive misapplication of DRY "Huffman coding".

cogman10|4 years ago

It's because you are using the wrong term that it's not caught on. Obviously this is run length coding or maybe LZ coding ;).

marcosdumay|4 years ago

On the other hand, if you keep repeating the same character sequence there is probably some structure on your code that you can also abstract away. You are not restricted to factoring business concepts.