Relative Content

Tag Archive for anti-patterns

Code reuse via inheritance [duplicate]

This question already has answers here: Code Smell: Inheritance Abuse [duplicate] (9 answers) Closed 11 years ago. I have a set of classes that are all dealing with some related tasks. These tasks do have different inputs and outputs. This causes it to become impossible to have the tasks done via shared code without having […]

How to tackle a ‘branched’ arrow head anti-pattern? [duplicate]

This question already has answers here: Style for control flow with validation checks (4 answers) Approaches for checking multiple conditions? [duplicate] (3 answers) Closed 11 years ago. I recently read this question that features, the arrow anti-pattern. I have something similar in code I’m trying to refactor except that it branches. It looks a little […]

How to tackle a ‘branched’ arrow head anti-pattern? [duplicate]

This question already has answers here: Style for control flow with validation checks (4 answers) Approaches for checking multiple conditions? [duplicate] (3 answers) Closed 11 years ago. I recently read this question that features, the arrow anti-pattern. I have something similar in code I’m trying to refactor except that it branches. It looks a little […]

Reference Passing Style Anti Pattern

I’m working on a legacy VB.Net code base. There are very few functions that return values, most of the code is in subs/void methods. The general strategy seems to be to pass everything in by reference, mutate it, and then observe the mutated state.