Skip to content

godump/doa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Doa

Package doa is the abbreviation of the "Dead or alive". It provides some easy ways to make you panic down the program.

Tip 38: Crash Early, https://www.amazon.com/dp/0135957052.

One of the benefits of detecting problems as soon as you can is that you can crash earlier, and crashing is often the bet thing you can do. The alternative may be to continue, writing corrupted data to some vital database or commanding the washing machine into its twentieth consecutive spin cycle.

Crash is not poison, it's "Quit gracefully".

Doc: https://godoc.org/github.com/godump/doa