CSC/ECE 517 Fall 2007/wiki3 2 bp: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:


''In class, we had some difficulty coming up with good examples of programming by contract. Find some concise ones that illustrate the principle well, and are accessible to a general audience of programmers.''
''In class, we had some difficulty coming up with good examples of programming by contract. Find some concise ones that illustrate the principle well, and are accessible to a general audience of programmers.''
== Overview ==
== Examples ==
=== Real World Examples ===
Examples in this section are based around real world metaphors and do not rely on programming specific concepts such as classes, methods, etc.
=== Programming Based Examples ===
Examples in this section use terms which are more specific to programming, defining themselves in terms of classes, methods, and pseudocode.  In keeping with the goal of having the examples be accessible to the general audience of programmers, examples using exotic/rare programming languages were excluded.
== References ==
The examples above were drawn from the following sources:

Revision as of 01:44, 12 November 2007

Programming by Contract

Purpose of this Wiki

This wiki page was created to address the following assignment:

In class, we had some difficulty coming up with good examples of programming by contract. Find some concise ones that illustrate the principle well, and are accessible to a general audience of programmers.

Overview

Examples

Real World Examples

Examples in this section are based around real world metaphors and do not rely on programming specific concepts such as classes, methods, etc.


Programming Based Examples

Examples in this section use terms which are more specific to programming, defining themselves in terms of classes, methods, and pseudocode. In keeping with the goal of having the examples be accessible to the general audience of programmers, examples using exotic/rare programming languages were excluded.


References

The examples above were drawn from the following sources: