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 […]
Are exceptions as control flow considered a serious antipattern? If so, Why?
Back in the late 90’s I worked quite a bit with a code base that used exceptions as flow control. It implemented a finite state machine to drive telephony applications. Lately I am reminded of those days because I’ve been doing MVC web apps.
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.
Looking for a book, blog or feed about anti-patterns [closed]
Closed 11 years ago.
Looking for a book, blog or feed about anti-patterns [closed]
Closed 11 years ago.
Looking for a book, blog or feed about anti-patterns [closed]
Closed 11 years ago.
Looking for a book, blog or feed about anti-patterns [closed]
Closed 11 years ago.
Unit-testing databases: test all possible permutations of read and write to table?
I am testing a resource management class that is interacting with a database or a file system, or a combination of both. I was wandering if it is the norm to test all possible permutations of read and write for all columns of a data-set when a database is involved. What I mean is: