Before We Continue: Either or Validation?

Learn why Validation is a useful alternative to Either.

Either vs. Validation

Suppose we receive data from a frontend where a user has just filled in their information. A situation where the user fixes their errors one at a time instead of just getting back a list of all problems might not be ideal. This might lead to user frustration and additional calls to our backend because the data is resubmitted multiple times. This is why Validation can be a useful alternative to Either.

Get hands-on with 1200+ tech skills courses.