45 ms·
I decide on a case by case basis. I've been bitten by both decisions in the past. Prematurely abstracting and "what's 4 copies gonna do, that's totally managea
by OtomotO 2y ago
I decide on a case by case basis.
I've been bitten by both decisions in the past. Prematurely abstracting and "what's 4 copies gonna do, that's totally manageable" until it cost quite some time to fix bugs (multiple times then, and because of diverged code paths, with multiple different solutions)
- ulbu 2y agoI think an abstraction should imply/enforce a common abstract structure. It inscribes an abstraction layer into the system. Moving a couple of concrete lines into a single named scope is orthogonal to this.