/refactoring_101-01

First chapter of refactoring series

Primary LanguageTypeScript

Refactoring 101 - chapter 1

  • Step 0: Initial situation
  • Step 1: Move validation code to another file and refactor decorators to avoid duplicated code
  • Step 2: New validation type which needs context (course duration max. 6 months)
  • Step 3: Extract validations to its own file
  • Step 4: Return validation error messages