CS 202 Fall 2013  >  Notes for Thursday, September 19, 2013

CS 202 Fall 2013
Notes for Thursday, September 19, 2013

Classes I Day 4

For today’s lab work, see the the 9/19 Challenge.

Most of the class period was spent on the above; here are a few points I brought up.

Development Methodology—A common mistake in software development is to think of ourselves as “done” when we have written a package and are about to test it for the first time. But really, debugging takes up more time than writing; if you have not ever executed code, then you are nowhere near done working on it.

Here, then is a better approach.

Somewhat counterintuitively, this approach means that you test code even when it is not complete, and you know it does not work properly. Such testing tells you just how it does not work and what you have left to do.

Using an Integrated Development Environment—Most of us do our programming using an IDE. It can be helpful to understand how these are designed.

So for example, when doing an assignment for this class, you could create a workspace/solution for the assignment. This would contain one project for each program you are to write. When you do run checks, open the workspace, set one of the projects as the startup project, and run it. Then set a different startup project, run that one, etc.

A couple of final points:


CS 202 Fall 2013: Notes for Thursday, September 19, 2013 / Updated: 19 Sep 2013 / Glenn G. Chappell