Re:“Clean Code, Horrible Performance” Discussion
by whstl on Saturday March 18, 2023 @08:43AM
(#35208627)
That's interesting, this is the first time I've heard this critique, and I totally agree.
The coding culture around Clean Code seems to put a lot of effort into "building frameworks on top of frameworks" without really admitting it, and the "framework-y bits" are intertwined with business logic, like exposed piping in a building. But business logic should look more like Golang instead.
Tying these two together. Clean Code doesn't distinguish between framework code and business logic code. Or more you should write the latter like the former. The problem is writing framework code is hard to do well. It needs to be well thought out, bullet proof, and importantly well documented. That takes a lot of time and effort and running the code under a number of different use cases.
One is better off writing business logic as straight forward and goal directed as possible.