Search for tag: "script"

Lesson 27.9 Model-View-Controller

When we break up out application in multiple classes, we need to give each class a role. One of the most popular ways to do this is designate a class as a model, a view or a controller. In this video…

From  Hannah Lee on November 30th, 2020 37 plays

Lesson 27.7 Advanced State Triggers

The state triggers we saw in the previous video were pretty simple. In this video, we talk about using a more complicated trigger: a double click. Double-clicking is more complicated because it needs…

From  Hannah Lee on November 30th, 2020 39 plays

Lesson 26.8 The Game of Pig

With while-loops we can now write some super complex programs – once that we way more sophisticated than what we have done before. In this video we show how to create a complete dice game with…

From  Hannah Lee on November 12th, 2020 39 plays

Lesson 26.1 The While-Loop

In this video we talk about the while-loop and explain why it is necessary. In particular, there are types of iteration that are not possible with the for-loop.

From  Hannah Lee on November 12th, 2020 45 plays

Lesson 25.2 Error-Specific Recovery

In this video we show how to use the error type to give you more control over a try-except statement. You can chose to recover from some errors, while completely ignoring other errors.

From  Hannah Lee on November 12th, 2020 44 plays

Lesson 24.3 Dynamic Attribute Access

Types guarantee that an object supports a set of operations (methods) and has a certain set of attributes. However, in this video we show that we can actually get this information without typing an…

From  Hannah Lee on November 12th, 2020 37 plays

Lesson 22.4 The Subclass Hierarchy

Since every class other than object must be a subclass of another class, this can lead to some interesting “family trees” of classes. In this video we look at Kivy classes, and see how…

From  Hannah Lee on November 8th, 2020 32 plays

Lesson 17.11 Graphical Recursion

Fractals are shapes that look the same when you magnify them larger and larger. This is another example of recursion. In this video we introduce the drawing turtle and show how we use it to draw…

From  Hannah Lee on October 19th, 2020 42 plays

SOIL Seminar: Decomposing C++ Modules for Fast Load Times

Title: Decomposing C++ Modules for Fast Load TimesSpeaker: Thomas Lively—GoogleSummary: Even with streaming baseline compilers, downloading and compiling large WebAssembly modules can…

From  Ross Tate on October 12th, 2020 64 plays

Lesson 14.4 Try-Except and Testing

We have a new control structure, so it is time once again to talk about testing. In this video we revisit the concept of code coverage and show testing a try-except is very similar to testing a…

From  Hannah Lee on October 10th, 2020 21 plays

Lesson 14.3 Try-Except and the Stack

The except-portion of an try-except statement is only executed when there is an error/crash. But, as we have seen, errors can occur anywhere in the call stack. In this video we show how try-except…

From  Hannah Lee on October 10th, 2020 22 plays

Lesson 14.1 Try-Except Statements

In this video we intrduce a new control structure: the try-except statement. As we will see, it looks very similar to an if-else statment with some important differences.

From  Hannah Lee on October 10th, 2020 25 plays

Lesson 13.2 Error Responsibility

When we introduced specifications, we talked about responsibility; if there is a problem with a function, it is either the fault of the definer or the caller. In this video, we show how we read an…

From  Hannah Lee on October 10th, 2020 17 plays

Lesson 13.1 Error Messages

Most of you have seen error messages already, working on the course assignments. But what do these error messages mean? As we seen in this video, we could not really talk about them until now because…

From  Hannah Lee on October 10th, 2020 20 plays

Lesson 10.7 Multifunction Debugging

Top-down design simplifies the design of code, but it can make debugging a little more complicated. Now bugs are potentially spread across multiple functions. In this video we look at an extended…

From  Hannah Lee on October 2nd, 2020 18 plays