Copiar y pegar es una indicación de código repetido. Dicho codigo sera dificil de mantener y generará acoplamiento

https://medium.com/p/acoplamiento-el-%C3%BAnico-problema-importante-en-el-dise%C3%B1o-de-software-ae203338c8d5

La solución es JAMAS copiar codigo. poner esa logica en una nueva abstracción que modele "eso" que se repite

Written by

I’m senior software engineer specialized in declarative designs. S.O.L.I.D. and agile methodologies fan.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store