アプリケーションでエラーが発生した場合、このエラーを処理するための正反対のアプローチが2つあります。
許して! アプローチ:アプリケーションは引き続き実行され、エラーの結果を最小限に抑えようとします。
早く失敗する! アプローチ:アプリケーションはすぐに動作を停止し、エラーを報告します。
- どのアプローチが良いですか?
- アプリケーションにどのアプローチを実装する必要がありますか?
これらの質問に答えるために、簡単な例を見てみましょう。
噴水の横にある水が汚染されているという警告を表示する簡単なWebページを作成する必要があるとします。
次のHTMLがこのタスクを実行します。
<html> <body> <h2 style="color:red;">Important!</h2> <p>Please <b>DO NOT</b> drink this water!</p> </body> </html>
ブラウザでのこのコードの結果は次のようになります。
ここで、HTMLコード内で小さな間違いを犯します。
タグの代わりに、タグを使用します
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
. <b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
. <b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
-
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
.<b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
-
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
.<b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
. <b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
. <b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
. <b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
.<b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
. <b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
-
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
.<b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
. <b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
-
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
.<b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
-
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
.<b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
. <b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
-
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
.<b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
-
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
.<b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
-
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
.<b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
-
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
.<b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
.<b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
-
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
. <b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
.<b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
. <b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
.<b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
. <b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
. <b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
. <b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
-
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
.<b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .
DO NOT, :
<p>Please <b>DO NOT<b> drink this water!</p>
:
? ?
. HTML- . Firefox, Google Chrome, Internet Explorer, Opera Safari :
, Forgive!, . , , . . !
: Forgive! !
. <b
DO NOT, :
<p>Please <b DO NOT</b> drink this water!</p>
:
! , , . . , , -.
: Forgive! !
, - . , " " . , Mariner 1 - " ". List of software bugs .
, Forgive! . , " ?"
, . , , .
:
Fail fast!
:
Fail fast! . - , , , . , Fail fast! . , . , , . , .
, , . , ---. , Fail fast! . , , , , . "", . , . "" " ". Fail fast! .
. , , . , Fail fast! , . - . Forgive! " ".
- Fail fast!, . , , , (", ... abc.tmp"), .
:
Fail fast! . :
Fail fast!. , , , . , , Forgive! .
Rule of Repair The Art of Unix Programming , :
- , .
6 - , :
, , , " ", .
, - , Fail fast! . , Fail fast! , . , , :
var table_row_index = 1 ... table_row_indx = table_row_index + 1
Fail fast!. / .
Fail fast! , . :
, , , .
(= + + ), , .
:
, , fail fast fail fast .
.
. Assert
. fail fast .
, - .