Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Contracts for Getting More Programs Less Wrong

Strange Loop Conference via YouTube

Overview

This course aims to teach learners about the concept of contracts in programming, which allow for specifying preconditions, postconditions, and invariants of functions and objects in code. By using contracts, learners will be able to check program conditions during runtime and improve program correctness. The course covers the Java Modelling Language (JML) and C0, demonstrating how contracts can be used to teach computer science students how to write correct algorithms and tests. The teaching method involves showcasing real-world examples and discussing how contracts can be applied in both imperative and object-oriented programming. The course is intended for individuals interested in improving their programming skills and learning how to write more reliable and efficient code.

Syllabus

Introduction
The Leap
The Gap
The First Takeaway
Contracts in Functional Languages
Fibonacci
Writing Fibonacci
Loop invariant
Compile time guarantees
Timsort
Conclusion

Taught by

Strange Loop Conference

Reviews

Start your review of Contracts for Getting More Programs Less Wrong

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.