Feeling tired / cannot finish to read the entire source code. Here are some guide that I always follow when I need to change other’s code in a very short time.

  • Define what is the changes that needed.
  • Read the affected module source code only.
  • Find a similar part or variable that you want to change. Then add/change it.
  • Always compile the code after small changes.

Example…
I have to upgrade other left over web application. No one is going to enhance it. Therefore, I am the one that have to do all the dirty work. The requirement is to skip some steps to ease user from repeat doing the same task. Product configuration page need to change to adapt this function – FastTrack. Therefore, product configuration database also need to be changed. I search a related variable such as testLib. I added FastTrack as checkbox just beside it in the source code and database for several pages. Used ‘find in files’ to search for testLib. It will show all the pages that testLib there. I added in FastTrack in those pages. Then off for trial run.

Random Posts