Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1


|Views: 8|Likes:
Published by api-19740459

More info:

Published by: api-19740459 on Nov 27, 2009
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





Programming Methodology-Lecture27
Instructor (Mehran Sahami): So welcome back. Wow. That\u2019s a little loud. To our last

week of cs106a. Of course, it is another fun filled exciting day despite it being our last
week. We\u2019re getting down to the end. We have class today, there\u2019s class on Wednesday,
there\u2019s no class on Friday. So next time will be our last day. But a few announcements.
There\u2019s actually just a load of announcements because we\u2019re so close to the end of the
quarter. First announcement, there\u2019s one handout, which is your section handout for this
week. There are still sections this week, so despite the fact that we don\u2019t have class on
Friday, still go to your sections this week.

There\u2019s a couple problems on the section handout, as well as the sectional will just be a
general review for the final exam in case you have any questions. That\u2019s a good place to
ask them. Also it would be a good place if you want to ask some questions say, about
[inaudible] for example, the last assignment. Just wondering, how many have started
assignment number seven? Wow, good to see. Anyone done with assignment number
seven? A couple of folks. That\u2019s good to know. I might talk to you afterwards as to how
much time it actually took you, but hopefully, it wasn\u2019t too painful. The graphics contest
was due last Friday. The winners will be announced in next class, so Ben and I actually
took a first pass already over all the contest entries. There was actually some very
impressive entries in the contest. Things you were just kind of jaw dropping, like, go and
show them to other faculty in the department because they\u2019re just that cool. But this
afternoon we are having our staff meeting with all the section leaders and they will
actually be the ones voting and deciding on the winners in each category. So we\u2019ll give
them the short list and they\u2019ll make the final determination, and then on Wednesday, I\u2019ll
announce it to and I\u2019ll check with the winners of the contest to see if they\u2019re okay
demo'ing it. But if they\u2019re okay demo\u2019ing it, then I\u2019ll show you the winning contest
entries as well, plus on Wednesday we\u2019ll have the random drawing to give away the last
sort of grand prize. But if you didn\u2019t happen to win, just for entering you still get an entry
into the grand prize or you could just get a free 100 percent on any assignment in the
class including the final exam. So assignment number seven, we just talked a little bit
about. Since it\u2019s due the last day of the quarter on Friday, but we don\u2019t have class that
day, it\u2019s just electronic submission. So if you\u2019re wondering about what do I do with the
hard copy, you don\u2019t need to do anything with the hard copy. We just need electronic

For the other assignments in this class, we requested that you turn in a hard copy because
when you did interactive grading or if you\u2019re a section leader to write comments on, we
actually had something that they could mark up. For assignment number seven, because
it\u2019s due the last day of the quarter, there will be no interactive grading for the last
assignment so the down side is there\u2019s no interactive grading for it, the plus side of that is
that you don\u2019t need to turn in a hard copy because we can just take a look at your online
submission to figure out functionality and other kinds of things. And just as a reminder,
even though it wasn\u2019t clear that was on the handout, like, right on the front the last couple
days, no late days on assignment number seven. Just in case you\u2019re wondering. So final
exam, it\u2019s time to start thinking about the final exam. Finals are next week. You probably

know that, but just in case you didn\u2019t, the final exam is just like the mid-term. It\u2019s open
book and open notes, so you can bring in your text book for the class. Feel free to bring
in all print outs of all your programs, all the notes you\u2019ve taken in the class, all your
handouts. That stuffs all open, but just like the mid-term, it is a closed computer exam. So
if you have a laptop or a PDA or whatever, you can\u2019t use that during the exam. Same
rules basically applies to the mid-term. And we\u2019ll talk a little bit more about the final
when we actually do review for it next class.

The regular final is scheduled for Thursday of finals week. That\u2019s December 13th, 12:15
to 3:15 P.M. in Kresge Auditorium, which is the same place we had the mid-term. One of
the only rooms large enough to actually accommodate us, and the alternate has been
scheduled. So alternate final is December 12th, that\u2019s Wednesday of finals week, 3:30 -
6:30 in the afternoon, also in Kresge Aud. So this time seemed like a relatively unpopular
time for other final exams. And you\u2019re free to take either one. So you don\u2019t need to send
me an email saying you have a conflict with the regular exam or whatever. If you just
want to get done with your finals earlier and you want to take the alternate exam, you\u2019re
just welcome to take the alternate exam. But only take one exam. So you can pick one,
and just one. That\u2019s just life in the city. Okay. And if you\u2019re an SEPD student, I
announced this last time, but I\u2019ll announce it again. I\u2019ve already gotten email from one of
you, which is a good thing. To email me by 5:00 P.M. December 5th, that\u2019s Wednesday
if you\u2019re planning on taking the exam at your site. If you\u2019re gonna come in for the exam,
you don\u2019t need to email me. You can, feel free to email and say, \u201cHey, man, I\u2019m gonna
come into campus and take the exam.\u201d And you\u2019re welcome to take it at either one of
these times as well as if you\u2019re out in SITN. But if you plan on taking it at your site, send
me an email. Also, let me know the name and email address of your site administrator so
I can send the site administrator your exam to administer to you. So that was just a load
of announcements.

Any questions about anything before we delve into our next great topic? All right. You\u2019re
feeling okay. Good. So a lot of today\u2019s class is actually about life after this class because
we\u2019re getting pretty close to the end of this class. So one of the things I want you to just
kind of know about and so you can think about it, are what are some of the options that
are available to you afterwards. Whether or not you\u2019re just thinking about declaring a
major or if you\u2019ve already declared a major or you just want to get sort of a lay of the
land of what\u2019s this whole computer science thing all about. Because probably the biggest
thing I would stress, despite the fact that you just spent the last nine weeks programming,
is computer science is not computer programming. Okay? A lot of time the two get
equated, but if it was called computer programming, this class wouldn\u2019t be called
programming methodology, we\u2019d just call it something like programs that work, right,
and we wouldn\u2019t worry about style and all this other stuff, and good software engineering
principles, and at the same time, computer science wouldn\u2019t be called computer science,
it would called something like programming. Right? And it\u2019s, like, \u201cOh, what did you
major in?\u201d \u201cOh, I majored in programming,\u201d and that\u2019s like, when you say, \u201cOh, I\u2019m
sorry. I think you can get shots for that kind of thing now.\u201d Because it\u2019s not just about
programming. There is programming in computer science, but there\u2019s actually a science
to the field and there\u2019s a lot of things that go on outside of programming and that\u2019s what

it\u2019s important to, in some sense, appreciate. So if we think about life after this class, let\u2019s
first kind of deal with some of the short-term logistical kinds of things. Like, you just
took this class; you might think, well, there\u2019s probably a couple things you think. You
think, \u201cHey, Miron, that was kind of interesting, I might consider taking 106b.\u201d You
might consider, \u201cHey, Miron, that was interesting, I might actually considering minoring
or majoring in computer science.\u201d And you might say, \u201cHey, Miron, that was interesting,
in the same way, for example, that dropping a brick on my head is interesting, and I\u2019m
gonna run screaming.\u201d

And if you\u2019re thinking the third option, I apologize, because that was not the point of this
class, but here\u2019s a few things that you can potentially think about, even if you\u2019re in the
third option and definitely some things to think about for the first two options. And I
guess there was also that option of the, \u201cOh, I got the general education requirements out
of the way and now I will go on figuring out what to do with the rest of my life,\u201d and if
that\u2019s the case, you should pay attention as well. So what happens after 106a? So here\u2019s
cs106a, this is where we\u2019re all sort of happy, and we\u2019re scrappy and we\u2019re making social
networks, and life after this kind of, you know, your next immediate step is actually
pretty clear. There\u2019s a class cs106b, that\u2019s called Programming Abstractions, which is the
next class to take. And that class is on a language called C++, so you\u2019ll learn a whole
new language, although, you\u2019ll realize when you actually CC++, that a whole bunch of
things in it are just the same as Java. Whole notions of parameter passing and methods,
and decomposition and objects, all those same things exist in here. Okay. But you also
will get with this class called Programming Abstractions because, so far, what we\u2019ve
done is used a lot of extractions. There you get into a whole bunch of tradeoffs with how
you can make things run more quickly versus perhaps using more memory versus
different kinds of programming techniques that actually come up. There\u2019s also some
really cool ideas that come up in here, which are just sort of mind blowing ideas, which is
the notion \u2013 for example, one of them is called recursion, which is so far we have
methods and methods call other methods and they call other methods. What if a method
called itself? That\u2019s kind of weird, Miron. Why would a method call itself? Because some
functions are defined in terms of themselves. Right?

If you kind of think about the factorial function \u2013 anyone remember this function? The
\u201cN\u201d function. Right? This is N factorial. And all this really is \u2013 sorry if I just shattered
your ear drums, is N times N minus 1 times N minus 2 times\u2026.times 1. You just multiply
everything together. That\u2019s where [inaudible] all about. You can define a function in
terms of itself. And it turns out, yeah, a factorial, that\u2019s kind of a simple way to
understand it. It turns out that this is a hugely powerful concept that allows you to do all
kinds of things, and this is kind of another cool thing you get in cs106b. Okay. Now, you
might say, \u201cOkay, Miron, that\u2019s still sounding like programming to me, even though I\u2019m
learning these cool concepts, isn\u2019t that just a programming class,\u201d and in some sense,
yeah, this is a programming class. There\u2019s other options that are also available to you
now that kind of fall into the category of being part of the CS major or the CS minor. A
set of classes called cs103. And cs103 come in a different couple different flavors, like,
vanilla, grape and pork \u2013 no, they come in those in a, b sequence and there\u2019s [inaudible] \u2013
I can\u2019t think of anything in the world that would come in those three flavors.

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->