目录

Computing

Week 1 notes


Computing

Vocabulary

Programming Languages

Console vs. GUI

Console
GUI
Computing vs. Programming
Code Segments

Python

Programming

What is Programming?

line of code
small chunks

简单的 Python

Compiling vs. Executing

The Python Interactive Mode

Evaluating Results

Debuging

Debug 的流程

  1. 获取足够多的信息
  2. 定位问题所在
  3. 解决问题

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.)

error type
python 的错误类型
Reading Errors in Vocareum

Basic Debugging

Scope Debugging in python

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…”

没准二分法会更好一些?