SWAT Lecture 05: Refactoring

05, SWAT Spring 2021

  1. Why, How, Who
  2. Clean Code: Broken Window Theory, DRY – Don’t Repeat Yourself -, KISS – Keep It Simple, Stupid -, YAGNI – You aren’t Gonna Need It -, Pathfinder Rule
  3. Catalogue of refactoring steps
  4. TDD, ATDD
  5. Practical Part
    1. Refactor using IntelliJ tools and catalogue refactoring steps
    2. Write unit tests and increase code coverage
    3. Write a new class using the TDD approach
    4. Code examples of students