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.
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.
As a hobbyscripter in mIRC and now Pythong (for four days), this was slow. Debugging is something that anyone does all the time. Splitting the code in two all the time is new for me, but since you are writing the code yourself, you should know where and when the bug came.
And, I used "var -s %var" and "echo -s %var" ALL the time :/
@mazterarius Wow, mIRC scripts. You must really know what you're talking about. From now on I'm just going to ignore everything here and read mIRC scripting tutorials. I'm sure I'll get better advice about computer science.
This has been flagged as spam show
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...
Realitydenizen 1 month ago
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...
Realitydenizen 1 month ago
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
ikartik90 2 months ago
@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.
ronmexico00 3 weeks ago
Got here by typing "just typing randomness in the search bar" in the search bar. :D
jeremu5 2 months ago
Nosebleed! He deserves commendations. He's a great lecturer.
agapitoflores001 3 months ago
such professors give the moral to continue
mclaarson 4 months ago
SO that's why they call it a BUG! haha nice =D
LXBD 5 months ago
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.
arngorf 6 months ago
Awesome lectures, thanks MIT
jcliberatol 6 months ago
Most slow lecture thus far.
As a hobbyscripter in mIRC and now Pythong (for four days), this was slow. Debugging is something that anyone does all the time. Splitting the code in two all the time is new for me, but since you are writing the code yourself, you should know where and when the bug came.
And, I used "var -s %var" and "echo -s %var" ALL the time :/
I use "print" all the time in Python, too.
mazterarius 1 year ago
@mazterarius Wow, mIRC scripts. You must really know what you're talking about. From now on I'm just going to ignore everything here and read mIRC scripting tutorials. I'm sure I'll get better advice about computer science.
Nisstyre56 9 months ago
@Nisstyre56 You won't, but computer science is general - it applies to all programming languages, even mIRC scripting.
mazterarius 9 months ago
@mazterarius
You're complaining about free MIT lectures. Perhaps it's time to remind yourself that you are entitled to precisely dick.
Daim0th 7 months ago in playlist MIT 6.00 Intro to Computer Science & Programming, Fall 2008
nice
KendallsVideos 1 year ago
Comment removed
spyros07 1 year ago
eiste oloi gia ton poutso!!!!!!!!!!!!!!!
Christaras920 1 year ago