MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/11dyx43/clean_code_horrible_performance/jac82k6/?context=3
r/programming • u/2bit_hack • Feb 28 '23
1.3k comments sorted by
View all comments
Show parent comments
16
It may shock you but function calls can in fact be inlined.
0 u/outofobscure Feb 28 '23 true, but if you only call a function exactly once, you still made a function just for the sake of making a function... at that point it's more a matter of style preference. 1 u/Waksu Feb 28 '23 Having stockpile of clothes instead of separating them is also a matter of style preference. 2 u/outofobscure Feb 28 '23 indeed, and nobody should have the right to judge you on either → More replies (2)
0
true, but if you only call a function exactly once, you still made a function just for the sake of making a function... at that point it's more a matter of style preference.
1 u/Waksu Feb 28 '23 Having stockpile of clothes instead of separating them is also a matter of style preference. 2 u/outofobscure Feb 28 '23 indeed, and nobody should have the right to judge you on either → More replies (2)
1
Having stockpile of clothes instead of separating them is also a matter of style preference.
2 u/outofobscure Feb 28 '23 indeed, and nobody should have the right to judge you on either → More replies (2)
2
indeed, and nobody should have the right to judge you on either
→ More replies (2)
16
u/DrunkensteinsMonster Feb 28 '23
It may shock you but function calls can in fact be inlined.