When You SHOULD Duplicate Code
Duplication is far cheaper than the wrong abstraction
Recently I published the article Prevent Duplicated TypeScript Code. A good friend of mine approached me and said:
“Great article, I learned a lot!”
I was a little bit astonished because he is a way better developer than me. I asked: