News for hackers. Stuff that matters.
Re:Reusable Software? Just Don't Write Generic Code by thibauts on Wednesday January 07, 2015 @08:17AM (#8850303)
When we add a layer of code on top of a system what we're doing is essentially locking or coupling degrees of freedom from the layer below. Trying to go the opposite way at the same time often is delusional.

When I'm tempted to make something generic, it's most of times because I've built a too-focused monolithic solution to my problem. Genericity should be built bottom-up from the start by progressing up in small layers with controlled (and meaningful) interface surface reduction.

Genericity is attained by composition.

There are no comments on this comment yet.