text stringlengths 1 81 | start float64 0 10.1k | duration float64 0 24.9 |
|---|---|---|
And among the first
problems you yourself | 7,731.98 | 2.02 |
will get to write beyond
playing with some of the syntax | 7,734 | 2.84 |
and solving some logical
problems, ultimately before long, | 7,736.84 | 3.04 |
is to actually scramble, or encrypt,
and ultimately decrypt information. | 7,739.88 | 4.08 |
And everything we've done
today, will fairly low | 7,743.96 | 2.51 |
level, is just going to allow
us to take one, and one, | 7,746.47 | 2.72 |
and one more step above toward
writing the most interesting code yet. | 7,749.19 | 4.36 |
>> So more on that next week. | 7,753.55 | 1.5 |
>> [VIDEO PLAYBACK] | 7,757.834 | 0.928 |
>> -What can you tell me about
the last time you saw him? | 7,759.69 | 2.316 |
-What can I say, really? | 7,766.041 | 0.999 |
I mean, it was like any other
pre-production rehearsal, | 7,770.5 | 4.84 |
except there was something he said
at the very end that stuck with me. | 7,775.34 | 5.17 |
>> -This was CS50. | 7,784.81 | 1.83 |
>> -That's a cut everyone,
great job on rehearsal. | 7,789.44 | 2.75 |
>> -That's lunch? | 7,792.19 | 0.88 |
>> -Yeah, you and I can
grab a sandwich in a bit. | 7,793.07 | 1.916 |
Let me just debrief with
David really quickly. | 7,794.986 | 3.394 |
David? | 7,798.38 | 0.78 |
David? | 7,799.16 | 2.1 |
>> [END PLAYBACK] | 7,801.26 | 1.85 |
[Music] | 3.41 | 9.829 |
[Music] | 15.28 | 6.869 |
all right this is cs50's Introduction to | 24.08 | 4.48 |
programming with python my name is David | 26.679 | 3.641 |
men and this is our week on object | 28.56 | 4.92 |
oriented programming or o it turns out | 30.32 | 4.64 |
that in the world of programming there's | 33.48 | 3.239 |
different paradigms of programming | 34.96 | 3.84 |
languages there's different ways of | 36.719 | 3.921 |
solving problems with code and it's a | 38.8 | 3.16 |
little hard to see this at first if | 40.64 | 3.36 |
you've only learned one language but | 41.96 | 4 |
over time if and when you learn other | 44 | 3.92 |
languages besides python you'll start to | 45.96 | 3.4 |
notice certain patterns and certain | 47.92 | 3.319 |
capabilities of some languages but not | 49.36 | 4.44 |
another thus far within the world of | 51.239 | 4.081 |
python you and I have largely been | 53.8 | 4.2 |
writing code that's procedural in nature | 55.32 | 4.199 |
whereby we're writing procedures we're | 58 | 3.199 |
writing functions and we're sort of | 59.519 | 4.121 |
doing things top to bottom everything is | 61.199 | 4.441 |
step by step by step as you would expect | 63.64 | 4.04 |
in general from an algorithm but along | 65.64 | 3.6 |
the way we've actually dabbled in | 67.68 | 3.52 |
another Paradigm known as functional | 69.24 | 4.68 |
programming with python whereby we've | 71.2 | 4.64 |
been able to pass functions around we | 73.92 | 3.76 |
even had an anonymous function some | 75.84 | 4.36 |
weeks ago and that's evidence of | 77.68 | 4.439 |
features of a functional programming | 80.2 | 2.879 |
language even though we've just | 82.119 | 3.201 |
scratched the surface thereof today we | 83.079 | 4 |
focus on another Paradigm and this one | 85.32 | 4.04 |
in more detail namely object-oriented | 87.079 | 4.161 |
programming and now while some of you | 89.36 | 3.439 |
might have prior programming experience | 91.24 | 3.159 |
and have learned languages like Java | 92.799 | 4.28 |
which are by Design fundamentally | 94.399 | 4.801 |
objectoriented python indeed allows you | 97.079 | 4.04 |
a bit of flexibility when it comes to | 99.2 | 4.279 |
how you solve problems with code but it | 101.119 | 4.761 |
turns out oop object-oriented | 103.479 | 4.041 |
programming is a pretty compelling | 105.88 | 4.04 |
solution to problems that you invariably | 107.52 | 4.52 |
encounter as your programs get longer | 109.92 | 4.76 |
larger and more complicated so indeed | 112.04 | 4.64 |
oop for our purposes is going to be a | 114.68 | 4.68 |
solution to a problem that builds on so | 116.68 | 4.68 |
many of the lessons passed so let's go | 119.36 | 4.2 |
ahead and do this let's start by writing | 121.36 | 4.88 |
a program very procedurally by opening | 123.56 | 4.6 |
up vs code here I'm going to go ahead | 126.24 | 4.799 |
and create a program called student. py | 128.16 | 4.439 |
and in this program I want to do | 131.039 | 4.48 |
something relatively simple initially uh | 132.599 | 5 |
as we might have done some weeks ago now | 135.519 | 4.601 |
where I just ask a user for their name | 137.599 | 4.201 |
and maybe in the context of the Harry | 140.12 | 3.68 |
Potter Universe their house and just | 141.8 | 4.68 |
print out where that student is from and | 143.8 | 4.719 |
let's gradually enhance this program by | 146.48 | 3.92 |
adding more and more features to it and | 148.519 | 4.561 |
see if we don't stumble upon problems | 150.4 | 4.04 |
that up until now we might not have had | 153.08 | 3.799 |
very elegant well-designed solutions to | 154.44 | 4.32 |
but if we introduce explicitly | 156.879 | 3.44 |
object-oriented programming as a | 158.76 | 3.64 |
programming technique I bet we can clean | 160.319 | 4.241 |
up our code and set the stage for | 162.4 | 3.96 |
writing even more sophisticated programs | 164.56 | 3.8 |
longer programs down the line so in | 166.36 | 4.32 |
student. piy let me go ahead and do a | 168.36 | 4.72 |
name variable setting it equal to the | 170.68 | 4.32 |
return value of input and just prompt | 173.08 | 4.2 |
the user for their name like this and | 175 | 3.8 |
then let me go ahead and do the same for | 177.28 | 3.319 |
a house variable and and prompt the user | 178.8 | 4.24 |
for their house using input like this | 180.599 | 4.64 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.