Hacker News new | ask | show | jobs
by lleolin 2357 days ago
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.
1 comments

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.