Category: agile refactoring

  • Refactoring and Git Developer Story

    I refactored a critical long class that has very long member functions. My main intention was to: Extract many smaller member functions to enhance class modifiability. By breaking the long member functions into smaller ones, it will be much easier to understand what the class is really doing. By having many smaller member functions, we…

  • Refactoring Tools

    I used IntelliJ to do some package renaming refactoring. I was confident that it was safe to do so, however, other parts of the code had changed when they should not have. Later on, I discovered the problem and fixed it. I used to avoid find/replace tools or grepping because it is dangerous as you can…