by juancampa · 9y ago · 0 comments
Some people call it "premature generalization". Relevant C2 page: http://wiki.c2.com/?PrematureGeneralization
My rule these days is that, in most cases, I shouldn't generalize before the same code exists in three places. Why not two? In my experience, things that are done twice aren't necessarily done three times. But things that are done three times are likely to be done a fourth.