Lab 10 FAQ: Designing and Implementing a Social Network

Lab 10 FAQ

General Recommendations | Debugging Advice | SocialNetwork class | FaceSpace program

General Recommendations

Debugging Advice

SocialNetwork

Reading in the People File. When you read in from a file, what does every line end with? How will that affect your code? Anything you should fix?

Reading in the Connections File. We solved a similar problem in terms of reading in this file format in class when we read in the file with the format name year on each line.

Face Space

Command-line Arguments. Look at the example code from Tuesday. You may want to copy the program into IDLE. To test the command-line arguments, you need to run the program from the terminal. The idea is to make testing the program easier with a variety of files used as inputs (without having to retype the filenames).

You do not want to write your code exactly as this. How is your code different?

Recommendations: