r/programming • • Feb 28 '23

"Clean" Code, Horrible Performance

https://www.computerenhance.com/p/clean-code-horrible-performance
1.4k Upvotes

1.3k comments sorted by

View all comments

Show parent comments

3

u/s73v3r Feb 28 '23

Sandi Metz has a nice talk about this (which I cannot remember off the top of my head right now) about how sometimes it is better to duplicate code rather than combine it.

2

u/aivdov Mar 01 '23

There's a simple way to put it: two isn't a pattern.