Re:Goodbye, Clean Code
by lleolin on Sunday January 12, 2020 @01:23PM
(#22027993)
When I look at his example I still sense a compelling sense to create some kind of abstraction. It's just that the example abstraction he chose to make is somewhat esoteric and arguably over-solves the problem. The author isn't suggesting a different, perhaps simpler abstraction, but forgoes abstractions entirely.
[ Parent
| on HN ]
I tend to agree.
To me, this is a good fit for some kind of 'fairly simple abstraction' - even the abstraction used is fine.
So long as everything worked, I think this might be a better solution.
I'm fine with 'don't just refactor because' but this looks like a fairly clean cut opportunity.
Social considerations aside.