120 reputation
6
bio website none
location India
age 32
visits member for 2 years, 3 months
seen Nov 18 '13 at 6:32

a .net programmer


Nov
14
asked Which is preferred coding style to validate and return from a method
Nov
9
awarded  Scholar
Nov
9
accepted How to avoid code duplication for a system which has logic that may change year wise?
Nov
9
accepted Can Dependency Injection used as an alternative to Reflection for creating instances
Nov
9
asked Can Dependency Injection used as an alternative to Reflection for creating instances
Nov
9
comment How to avoid code duplication for a system which has logic that may change year wise?
That make sense. Thanks! However, my another question is what would be a good approach (or design pattern) for the client to identify which functionality to use. Say TaxClient is my application and there are two classes TaxCalc2013 and TaxCalc2014, both inherited from TaxCalcBase. Each of these classes have its own version of Calculate() method. How could tax client discover and execute the correct object and method?
Nov
9
awarded  Editor
Nov
9
awarded  Teacher
Nov
9
comment How to avoid code duplication for a system which has logic that may change year wise?
The code could not be stored in database. If the language is c#, how could the code stored in database executed?
Nov
9
comment How to avoid code duplication for a system which has logic that may change year wise?
@Doc - No, the old version is not freezed
Nov
8
awarded  Supporter
Nov
8
awarded  Student
Nov
8
comment How to avoid code duplication for a system which has logic that may change year wise?
@Dan The cost as well as the code base is very huge if the system has to deal with insurance forms or tax forms instead of questions.
Nov
8
asked How to avoid code duplication for a system which has logic that may change year wise?
Aug
25
awarded  Autobiographer