This question is related to my experience with FOSS as a student. Sorry I might be a bit subjective, but working with a certain approach here and would want to know if I am on the right track.
I am involved in project,where I am supposed to refactor code which has been already written by someone else but was never included in the main trunk. The core code stays the same but as the GUI of the project has evolved changes needed to be made before it can be integrated.
My Approach till now has been:
- Separate the core from GUI dependent code
- Copy+Paste all the core code(As it should work )
For sometime I had no problems but now for a class on which my code depends, I am facing problems as the newer version has a different constructor and has different looking code.
What is the best way out in such cases?
Understanding all the code will take time. And I am beginner working on bigger project.