PaquitoSoft / refactoring_101-01

First chapter of refactoring series

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

First chapter of refactoring series


Languages

Language:TypeScript 83.8%Language:HTML 16.2%