Fail Fast

Good code handles a thousand nit-picky edge cases. But sometimes, you don’t need to handle all those edge cases yet. You can save time by making your code fail fast. Make the code fail clearly and obviously, with good error messages, and you can skip unneeded edge cases now without worrying about forgetting them in the future.

  1. E183Know Your Audience

    Mon, 10 Mar ’14
  2. E184Element Dimensions

    Wed, 12 Mar ’14
  3. E185The Nuclear Option

    Mon, 17 Mar ’14
  4. E186Prepare the Way

    Wed, 19 Mar ’14
  5. E187Down the Rabbit Hole

    Mon, 24 Mar ’14
  6. E188A Fresh Start

    Wed, 26 Mar ’14
  7. E189IE 8 Don’t Play That

    Mon, 31 Mar ’14
  8. E190I Can Haz getComputedStyle()?

    Wed, 2 Apr ’14
  9. E191The Last Resort

    Mon, 7 Apr ’14
  10. E192Throw It Away

    Wed, 9 Apr ’14
  11. E193Fail Fast

    Mon, 14 Apr ’14
  12. E194Appropriate Failure

    Wed, 16 Apr ’14
  13. E195Don’t Allow Mistakes into Production

    Mon, 21 Apr ’14