Brad Balderson

37%
Flag icon
Red Flag: Special-General Mixture This red flag occurs when a general-purpose mechanism also contains code specialized for a particular use of that mechanism.
Brad Balderson
In other words, you have not properly separated general functions from specific applications of those functions in a certain class. For instance, a general purpose mechanism might be to subset a matrix. It dosn't make sense to impliment this with a class that stores matrices, instead one might need to alter this mechanism to change different kinds of subsetting. If you instead separate this matrix subset mechanism from the class, could use it in other classes as well, and would simplify the original class.
A Philosophy of Software Design
Rate this book
Clear rating