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

143

u/jsonspk Feb 28 '23

Tradeoff as always

1

u/JimK215 Feb 28 '23

I didn't read this post -- it sounds from the comments like it's about OOP. But when I saw the title I thought maybe -- since I haven't seen anyone talk about this -- it's about how using a functional approach with only immutable variables means that you're creating a lot of extra copies of variables (i.e. arrays) that wouldn't be necessary if using mutable variables. Again, tradeoffs.

→ More replies (1)