News for hackers. Stuff that matters.
Re:“Clean” Code, Horrible Performance by berniedurfee on Wednesday March 01, 2023 @08:29AM (#34982129)
100% agree.

Clean code (OOP, DRY, etc) is optimized for maintainability and extensibility, not necessarily performance.

In fact, I think it’s pretty well understood that clean code is a tradeoff wrt performance, at least that’s the way I’ve always understood it.

Clean code works well for something like a web app that’ll need to be maintained by scores of different engineers over many years or decades.

At least that’s the theory. In practice, at least some level of abstraction makes it a bit easier to rip and replace parts of the app without a total rewrite.

There are no comments on this comment yet.