How to avoid code duplication for a system which has logic that may change year wise?
        Posted  
        
            by 
                aravind
            
        on Programmers
        
        See other posts from Programmers
        
            or by aravind
        
        
        
        Published on 2013-11-08T16:58:21Z
        Indexed on 
            2013/11/08
            22:14 UTC
        
        
        Read the original article
        Hit count: 444
        
What would be the way to design a system which has logic that may change year wise? There is an application which conducts online exams.
There are five questions for a particular subject. The questions may (or may not) change year wise.
As per my current design, the questions in database are stored year wise. There are some year specific code logic as well. In order to enable the application for another year, the year specific database records and code will be copied or duplicated.
How to avoid this code duplication?
© Programmers or respective owner