Hacker News new | ask | show | jobs
by cloudfifty 1652 days ago
I'm not so sure it will be an overall win.

Will it be nice with generics for carefully crafted and cherry-picked use-cases? Absolutely.

Will it make the average large codebase less readable after a dozen coders have been doing their own cleverness with generics 3-5 years down the line? In my experience, most definitely.

Of those two, I'm much more afraid of working with the latter than missing out on the former.

It sometimes feel like we as devs have a habit of optimizing for the individual dev's convenience (not to mention what's fun) rather than for the collective effort's best interest - like the long-term maintainability/coherency of the code base. To some extent I assume that's just being human, but in other professions I think it would be seen as a bit lazy and thus more stigmatized.