4 Comments

Repeated code is annoying and becomes a tech liability overtime.

I think it is essential tl reiterate the code every once in a while to detect repeated code and add more abstractions.

Thank you for the short and nice advice 🙂

I have one question though. I am a bit unclear as of why you are saying that repeated code should be written and then removed and link it when writing new abstraction? Why noy just write abstraction from the start?

Expand full comment

Abstraction from the start is premature optimizacion. You have no enough evidence you will need it.

Expand full comment

I see your point yeah. Do you have recommendations on how often should teams look for repeated code? Perhaps maybe just if someone notices it.

Expand full comment

it is kind of a smell. No hard rules

Expand full comment