Nibitaph resilient programming with structured requirements, preconditions and error-logging.
Objective-C C C++
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
RequiredAVFoundation.h
RequiredAVFoundation.m
RequiredAccelerate.h
RequiredAccelerate.m
RequiredAppKit.h
RequiredAppUIKit.h
RequiredAppUIKit.m
RequiredCFNetwork.h
RequiredCFNetwork.m
RequiredCoreAudio.h
RequiredCoreAudio.m
RequiredCoreFoundation.h
RequiredCoreFoundation.m
RequiredCoreGraphics.h
RequiredCoreImage.h
RequiredCoreMedia.h
RequiredCoreMedia.m
RequiredCoreText.h
RequiredCoreText.m
RequiredCoreVideo.h
RequiredCoreVideo.m
RequiredFoundation.h
RequiredFoundation.m
RequiredGCD.h
RequiredGCD.m
RequiredGLKit.h
RequiredGLKit.m
RequiredLogString.h
RequiredLogString.m
RequiredMacCompatible.h
RequiredMapKit.h
RequiredMapKit.m
RequiredNoARC.h
RequiredOpenGL.h
RequiredOpenGL.m
RequiredOpenGL2.h
RequiredOpenGLES.h
RequiredUIKit.h
UCFTypeRefProperty.h
UFoundationArc.h
lgpl-3.0.txt

README.md

WithRequirements

Objective-C 2.0 (minimum) Structured Programming with Invariant Requirements (Bertrand Meyer's PRECONDITIONS).

The basic premise of WithRequirements is that traditional assertions, including assert(exp) and NSAssert() create fragile systems. The goal of WithRequirements is to replace fragile assertions with resilient preconditions. Some failed assertions result from temporary runtime conditions. Stopping the execution of a program might be fine for a CompSci 101 student project or a Cordoba craplication, but it doesn't really cut it for well designed software. Well-designed, resilient software should flex and bend under exceptional circumstances, but it should not break.

A style of programming originally influenced by:

1) assert(expression) c-language macros.

2) VERIFY(expression) style of coding in Microsoft Foundation Classes.

3) ThrowIfNil_(expression) style of coding in PowerPlant.

If employed rigorously, code becomes self-debugging and self-diagnosing. Or maybe you love a inscrutable stack trace from an NSException thrown deep from inside the unpacking of an NIB by NSCoder.

SYSTEM REQUIREMENTS

  • COMPILE-TIME: ARC, pre-ARC, GCC 4.2, GCC 4.2 LLVM, 1.x LLVM and higher.
  • RUN-TIME: Snow Leopard and higher, iOS 5.0 and higher.

MORE INFORMATION https://en.wikipedia.org/wiki/Antifragile https://en.wikipedia.org/wiki/Assertion_(software_development)