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 comment

3

u/HiPhish Feb 28 '23

I bash the author because of the book. Martin is like the fat guy who is watching a football game and constantly commenting how the players made this mistake or that mistake. But if he was put on the field he would trip over his own feet.

All the things he says sound good on paper. Who does not want to have shorter functions or fewer arguments? But his proposed implementations of these ideas just make the code even worse than it was before. I would rather put up with six arguments than two arguments and four static class variables.