Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Lec 11 | MIT 6.00 Introduction to Computer Science and Programming, Fall 2008

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
27,136
Loading...
Alert icon
Sign in or sign up now!
Alert icon
There is no Interactive Transcript.

Uploaded by on Aug 19, 2009

Lecture 11: Testing and debugging

Instructors: Prof. Eric Grimson, Prof. John Guttag

View the complete course at: http://ocw.mit.edu/6-00F08

License: Creative Commons BY-NC-SA
More information at http://ocw.mit.edu/terms
More courses at http://ocw.mit.edu

  • likes, 1 dislikes

Link to this comment:

Share to:
see all

All Comments (15)

Sign In or Sign Up now to post a comment!
  • @ikartik90

    1) tmp = res

    In version #1, temp is assigned to = res. res is a list. therefore, when tmp is changed res is also changed (the professor called it an creating an alias)

    when a list is assigned, changes go both ways. a change to list 1 changes list 2, and a change to list 2 changes list 1.

    2) tmp = res[:]

    In version #2, the program creates a copy (i.e. clone) or the list res. now when tmp is changed, res is not changed.

  • Isn't it funny that in 1947 they had so many people working on a solution for arctan().

    I wonder why THAT could have been. This is the face I make when I'm totally puzzled...

  • Can anyone elaborate the cloning part? I didn't quite understand it. How does the cloning thing work?

    I understand the rest. And a commendable lecture by the way, thanks to Mr. Guttag

  • Got here by typing "just typing randomness in the search bar" in the search bar. :D

  • Nosebleed! He deserves commendations. He's a great lecturer.

  • such professors give the moral to continue

  • SO that's why they call it a BUG! haha nice =D

  • Debugging is a darn boring topic... and I think it feels quite a bit more boring when it already logical to one to be systematic. Still a good lecture. I bet many would need it.

  • Awesome lectures, thanks MIT

  • @mazterarius

    You're complaining about free MIT lectures. Perhaps it's time to remind yourself that you are entitled to precisely dick.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more