When ‘Clean Code’ Hampers Application Performance https://thenewstack.io/when-clean-code-hampers-application-performance
When 'Clean Code' Hampers Application Performance - The New Stack
Seattle-based programmer Casey Muratori sparked a debate in the programming community over some long-held assumptions about best practices.David Cassel (The New Stack)
❄️ freezr ❄️
in reply to Paolo Redaelli • • •absc
in reply to ❄️ freezr ❄️ • • •Way too much dogma in the programming world.
❄️ freezr ❄️
in reply to absc • • •absc
in reply to ❄️ freezr ❄️ • • •Clean code advocates always want to remove the responsibility of code suckiness from the programmers, shifting it to the codebase.
Of course Muratori showed they are a bunch of clowns.
When Robert C. Martin, a prominent figure in the agile world and main author of the clean code principles tells you that, today, "function call optimization and indirections does not matter much", what he saying is that, from the height of his infinite cloud budget that it's fine to pay 2x in your cloud bill to calculate the area of a shape.
With energy prices rising, and cloud prices rising even more, I expect that "clean code" will go out of the window soon.
I'm tired of "elegant" and "clean" code that's utterly slow.
Paolo Redaelli
in reply to absc • • •"function call optimization and indirections does not matter much"
Well, statically optimized languages like #LibertyEiffel would turn that polymorphic call into a switch inlining the actual code 😀
@freezr