Wednesday, January 18, 2012

Rethinking the "canned" code

Dr. Sykes and I had a fruitful conversation today, and the thing that impacted me most was a new way of writing the "canned" code. Ideally, I can phrase the "core" of the algorithm to contain as much as possible of what will be needed to solve each problem. One idea Dr. Sykes mentioned was to write the core algorithm to manipulate an object (abstracting several methods), then allow each solution to define an object and each of those methods.

I've been writing solutions to several problems using the algorithm, but I'd been planning to include them in a separate document from the main report (to prevent the main report from getting too bulky to be a good reference). After talking with Dr. Sykes, I realized that examples are a critical part of a good reference, so I'll include at least one example for every section of the report.

No comments:

Post a Comment