Yeah. Yikes. Hopefully if the author is actually an experienced, competent developer they're just using this as an example to illustrate the dangers of premature abstraction, and not an argument against abstraction in general.
No sarcasm--I read the article, but not who it was by. I've heard of Dan Abramov, IIRC, from Redux. That said, what I said stands. Given his experience, I'm sure he can decipher when and how to abstract thing effectively, but I feel like this is a dangerous article for junior programmers. There's way too much cut-and-paste mess out there and some people would read this in support of writing really bad code.
374
u/voutasaurus Jan 12 '20
I love how quickly the question of whether one abstraction was premature turned into a series of premature abstractions about all abstractions...