DEV Community

Discussion on: Refactoring: My 6 favorite patterns

Collapse
 
johannesjo profile image
Johannes Millan

Thank you for the article. Really interesting subject.

However, I would like to suggest to be very very (!!) cautious with the advises 4, 2 and 1, because of KISS and Yagni. Always think twice or better thrice before introducing a new abstraction level to your code.

Always ask yourself: Do we really need this now and what are possible costs of the abstraction?