Week 1 notes
print()
,function,自带换行Joyner's Law of Debugging: The time required to fix an error is inversely proportional to the time required to find the error. The longer it takes to find the error, the easier it is to fix once found. (Generally.)
I call this “scope debugging” because the goal is to debug small scopes of your program, rather than trying to debug everything all at once. If you have a 20-line program, for example, you might break it down into four 5-line chunks and say, “Ok, the program has worked through the first five lines, but it breaks in the second five lines…”
没准二分法会更好一些?