NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
The Two Kinds of Error (evanhahn.com)
noelwelsh 17 minutes ago [-]
I agree with this, and I'd add there are two modes of processing errors: fail-fast (stop on first error) and fail-last (do as much processing as possible, collecting all errors). The later is what you want to do when, for example, validating a form: validate every field and return all the errors to the user.
2 minutes ago [-]
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 20:57:21 GMT+0000 (Coordinated Universal Time) with Vercel.