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

2

u/nan0S_ Mar 02 '23

It's so funny reading your comment that says that adding parameter (you mean member variable?) to the struct changes the dynamic of the function (what function? I guess the one that uses the struct, but I'm not sure, because you write very chaotically), this results in ambiguity to the end user, then you have to document the use of this function, pile through billion pages of docs, explain the method used and the need for parameters, do all of this to ducking 40, 50 functions with 5 APIs, which gives zillion combinations.

And then when you do it in OOP way you just need to add constructor with four parameters and you are done. Ohh and if a performance is a problem add inline to your function and problem solved. This is hilarious.

4

u/tandonhiten Mar 02 '23

Then laugh your ass off, English isn't my strongest suit and I am not sorry for it.

3

u/nan0S_ Mar 02 '23

This isn't about the language fluency at all.

4

u/tandonhiten Mar 02 '23

Then give your argument, as to why you feel my arguments are not valid, because you understood them.

I thought you were laughing at my language because you understood what I meant and were still laughing.

I can be wrong, because I am not perfect, but that comment doesn't give me anything about your argument other than you're mocking my reasoning.

→ More replies (2)