FailFast

Category: Python - Image Viewers

It will check the document and point to the assertion point of failure brought down by nils or bad values in the code.Judicious use of FailFast assertions to check the assumptions can ensures that the program will end as soon as a contract violation is detected.One of the primary goals of FailFast is to make assumption-checking declarative. Assumption checking should be simple and concise so that it can get to the meat of a method without getting blocked down in verifications. At the same time, FailFast is lightweight. It is not a metaprogrammed Design-by-Contract DSL. It is a simple set of shorthand methods for validating values.It is not the intent of FailFast to have specialized assertions for every eventuality. Rather, it seeks to cover a few common cases where there is a potential for significantly increased clarity and declarativeness. Key features "FailFast": Fully speca?™d/tested. In most cases assertions return their last argument. This makes it easy to check values inline. For instance: assert_exists(obj).foo() Most assertions can take a block where a further boolean check can be performed. For instance, use assert_exists(x) { x.predicate? } to check first that x is not nil, and then that it satisfies a predicate. AssertionFailure derives directly from Exception so that it will never be silently eaten by no-argument catch statements. Date: 15 May, 2012


Assertion Method - Error Checking - Assumption Checking - Error - Checking - Assumption

Homepage: http://files.rubyforge.vm.bytemark.co.uk/

Developer: files.rubyforge.vm.bytemark.co.uk

License: Freeware

Operating System: All

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

The module makes use of cron jobs.

developer Developer: ftp.drupal.org
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


404 Manager is Unix compatible.

developer Developer: http://www.theemiratesne...
license License: Freeware
operating systems Operating System: Unix


Streamlines your authoring and site administration by identifying your server environment and reporting the results directly in your browser.

developer Developer: http://www.craigrichards...
license License: Freeware
operating systems Operating System: All


JavaScript Error Stopper is a script that, when inserted in any document, suppresses all (potential) JavaScript errors from popping up.

developer Developer: javascriptkit.com
license License: Freeware
operating systems Operating System: All


This code snippet can be used to trap errors in your PHP scripts.

developer Developer: phpmachine.com
license License: Freeware
operating systems Operating System: All


Because MATLAB doesn't provide a built-in function to plot bars with any error adjustments, this script will draw vertical bars and display an error marker for each bar.

developer Developer: mathworks.com
license License: Freeware
operating systems Operating System: All


TCN 404 Tracker allows you to track pages that are being linked to but they don’t exist anymore.

developer Developer: timlinden.com
license License: Freeware
operating systems Operating System: All


Bag collection class script implements Smalltalk's bag class.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


Shared objects work like normal data types but can create a alias variable or can be used as pass-by-reference arguments.

developer Developer: mathworks.com
license License: Freeware
operating systems Operating System: All