Bad Smells: Library classes


A modern application will use library classes. Sometimes these put us in a dilemma. We want the bookstore to be different, but we don’t want to change it. Even when it is possible to change libraries, it carries risks: It affects other clients and this implies redoing our changes for future versions of the library.

Incomplete Library Class

Symptoms

You are using a library and there is a feature you would like it to have.

To do

Rewards

Reduces duplication (when you can reuse library code instead of implementing it completely from scratch).

Contraindications

If several projects incorporate a library in incompatible ways, it may involve extra work to adapt to future changes to it.

2019-03-20
Written by Samuel de Vega.
Tags