Skip to main content
๐Ÿ“œ WAYPOINT LESSON

Checkpoint โ€” Input pipeline

โญ beginnerโณ 18 min read๐Ÿ“ Lesson 13 of 85

One method that reads like production validation code.

Checkpoint: the intake form

Task: implement static string ProcessField(string label, string input) which validates one form field:

  • label "age": must parse to an int 1โ€“119 โ†’ "accept" else "reject:age".
  • label "score": must parse to an int 0โ€“100 โ†’ "accept" else "reject:score".
  • any other label โ†’ "reject:label".
  • whitespace-only input (any label) โ†’ "reject:empty" (checked first).