Search for tag: "specification"
SOIL Seminar: Project Everest: Verified Secure Compenents in WebAssemblyTitle: Project Everest: Verified Secure Compenents in WebAssembly Speaker: Jonathan Protzenko Summary: Project Everest is a multi-institutional effort that aims to build a stack of formally verified…
From Ross Tate
10 plays
|
|
Lesson 28.5 Generator DesignNow that we know how generators work, it is time to write our own. In this video we show how easy it is. We just take out experience with the accumulator pattern and replace the accumulator with a…
From Hannah Lee
60 plays
|
|
Lesson 27.6 Application StateEven though you only need to implement three methods in GameApp subclass, this methods will eventually get very long. In this video we introduce the concept of application state, and talk about how…
From Hannah Lee
67 plays
|
|
Lesson 26.5 While-Loops vs For-LoopsWe can always replace for-loops with while-loops, but should we? In this video we talk about the trade-offs of the two control structures and why it might be better to use over the other.
From Hannah Lee
79 plays
|
|
Lesson 26.4 While-Loop PatternsIn this video we introduce two new patterns for while-loops: using a goal condition and using a boolean tracking variable. We see how these patterns allow us to write functions that we could never…
From Hannah Lee
77 plays
|
|
Zoom Nov. 3. Object-Oriented DesignIn ths presentation, we will spend the time creating several example classes. This is another major part of the next exam.When we work with classes, it is very important to pay attention to…
From Hannah Lee
37 plays
|
|
Lesson 23.8 Properties (OPTIONAL)This video introduces an advanced topic that is completely optional and will not appear on any exam. Classes like RGB and Point3 appear to enforce their invariants without any getters and setters.…
From Hannah Lee
34 plays
|
|
Lesson 21.5 Data EncapsulationIn this previous video we introduced the concept of getters and setters. But how do we force the user to use these when the attribute is so much simpler. In this video we talk about the concept of…
From Hannah Lee
108 plays
|
|
Lesson 21.3 Interface ImplementationOnce you have the interface to a class, it is time to start writing code. As we see in this video, the idea is much the same as writing functions. However, attributes – and specifically…
From Hannah Lee
100 plays
|
|
Lesson 21.2 Interface DesignWhen designing a class, we need to come up with the interface first. In this video we talk about how to do that. We approach this problem returning to our understanding of types: a collection of…
From Hannah Lee
98 plays
|
|
Lesson 21.1 Interface vs ImplementationWhen we implement (or define) a function, we are given a specification and we complete the rest of the body to match the specification. We will do the same thing for classes as well. But as we see in…
From Hannah Lee
165 plays
|
|
Lesson 20.5 Method DefinitionsIn addition to attributes, objects also have methods. In this video, we show how to add a method definition to a class. For the most part, it is as simple as indenting a function definition inside of…
From Hannah Lee
121 plays
|
|
Lesson 20.4 Classes SpecificationsClasses are something we can define. That means we need a specification to tell us what it means for a definition to be correct. In this video we cover the basics of a class specification, and show…
From Hannah Lee
105 plays
|
|
Lesson 20.1 Class DefinitionsIn this video we show you the basic format of a class definition. However, classes can contain a lot of features, so our classes will be very simple for this demonstration.
From Hannah Lee
130 plays
|
|
Lesson 18.4 Nested SlicingSlicing a list creates a copy. In this video we show what this means for nested lists. In particular, we show that sometimes a copy is not really a copy after all, and that we have to distinguish…
From Hannah Lee
83 plays
|
|
Lesson 17.10 Recursion and Helper FunctionsDivide-and-conquer is not the only example of recursion. It just happens to be one of the most interesting. But in this video we show that even some of the simplest of recursive definitions become…
From Hannah Lee
334 plays
|