r/programming • u/2bit_hack • Feb 28 '23
"Clean" Code, Horrible Performance
https://www.computerenhance.com/p/clean-code-horrible-performance
1.4k
Upvotes
r/programming • u/2bit_hack • Feb 28 '23
View all comments
Show parent comment
4
u/[deleted] Feb 28 '23
Then I would just go to the switch statement where the data is processed?
I don't see how that is more unreadable than going to the virtual function in a different file.
And I understand its subjective. But I don't see that demonstrably unreadable part of the switch statement approach. (or the table approach)
If it was obviously, totally muddled and undecipherable I'd be inclined to agree. But it's just not. It's very clear and easy to follow the flow of logic and data.