Search for tag: "definition"

CAM Colloquium - Yulij Ilyashenko (11/20/20)

Zoom Recording ID: 95217932087 UUID: XeOXXTLdReaGoMkl0249tw== Meeting Time: 2020-11-20T20:15:03Z

From  Erika Fowler-Decatur on March 31st, 2021 2 plays

DEA1110 Lecture 1: What is Design? Prof. Cindy Hsin-Liu Kao

Lecture 1: What is Design? DEA 1110 Making a Difference by Design Course Description, Prof. Cindy Hsin-Liu KaoThis is an introductory course for non-designers and designers alike, which aims to…

From  Cindy Hsin-Liu Kao on March 12th, 2021 2 plays

Berger International Speaker Series with Alice Farmer: International Refugee Norms and Their Implementation in the United States

Alice Farmer is the Legal Officer for UNHCR’s Washington D.C. office. The office serves as a resource to policymakers in drafting and implementing refugee protection measures; monitors U.S.…

From  Lindsey Mulholland on February 24th, 2021 1 plays

Lesson 28.3 The yield Statement

Making iterator classes is hard. In this video, we show an alternative, allowing us to write the iterator as a ‘function”. This requires the addition of a new python statement, the yield…

From  Hannah Lee on December 3rd, 2020 29 plays

11.3.20 Jesse Goodman, PhD at Cornell University

Zoom Recording ID: 97470844866 UUID: f1VhPhybRwaIZHAbdQQZdg== Meeting Time: 2020-11-30T21:01:09Z

From  Jordan Staiti on November 30th, 2020 5 plays

Labor Roadshow IV: November 18, 19, 20, 23, 24, 2020

Zoom Recording ID: 93454448958 UUID: YbKfmfBcQNiYiEmv9KKzRQ== Meeting Time: 2020-11-18T16:29:57Z

From  Julie Berry on November 18th, 2020 61 plays

Lesson 24.2 The isinstance Function

In this video, we show that we can solve the problem of strict typing by using the isinstance function. This function will be our preferred way for enforcing preconditions going forward.

From  Hannah Lee on November 12th, 2020 34 plays

Lesson 24.1 Strict Typing

Whenever we have enforced preconditions, we have always used the type function. In this video we show why that is a problem, particularly when we want to use an object argument that is a subclass of…

From  Hannah Lee on November 12th, 2020 29 plays

Lesson 23.5 Mixed-Type Operators

Operator overloading allows us to redefine the meaning of + or * on objects of our class. But sometimes we want to mix together types like a fraction and integer. In this video we show that it is…

From  Hannah Lee on November 8th, 2020 41 plays

Lesson 22.3 The object Class

Every class must be a subclass of something, and that parent class goes inside of the parentheses. That means that the word object we have been using in all of class definitions is actually a class.…

From  Hannah Lee on November 8th, 2020 35 plays

Zoom Oct. 29. Classes

In this presentation, we review the class definition. We look at both the syntax (what must be present for the definition to work) and the semantics (how it is processed in Python).Most of this class…

From  Hannah Lee on October 30th, 2020 10 plays

Lesson 21.6 Immutable Attributes

Getters and setters have another advantage in that they allow us to completely disable to any changes to an attribute. This allows us to separate attributes into mutable and immutable attributes,…

From  Hannah Lee on October 30th, 2020 50 plays

Lesson 21.1 Interface vs Implementation

When 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 on October 30th, 2020 50 plays

Zoom Oct. 20. Recursion

Recursion is a powerful programming tool and one of the fundamental principles of computer science. It is used in many advanced algorithms.In this session, we will just focus on divide-and-conquer,…

From  Hannah Lee on October 27th, 2020 15 plays

Lesson 20.7 Intializers

In this video, we introduce the most important method definition in any class: the initializer. The initializer is responsible for creating all the attributes so that the user does not need to worry…

From  Hannah Lee on October 27th, 2020 49 plays

Lesson 20.6 Method Visualization

Methods definitions look just like function definitions, but we call them differently. In this video we show how to visualize a method call, and we see just how it differs from a function call.

From  Hannah Lee on October 27th, 2020 45 plays