← BYTE — March 1981

BYTE — March 1981

From the originals

13 scans

Machine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.

These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.

PDF page 12

Editorial------------------------------------------------------------ coding. In most informal situations (ie: when you're not programming for hire), a sketchy design provides an ac ceptable compromise between no design and a rigorous design. INTEGRATION TEST MODULE TEST 25% CODE 20% Figure 1: A pie chart giving average percentages for activities within the process of designing, writing, and testing a program. The chart does not include maintenance of the program, which is estimated to take twice as much time as design , writing, and testing. ANAllZA~ (Let your computer play psychiatrist!) ANALIZA is a program which simulates a conversation with a psychiatrist. You are the patient, the computer becomes the doctor. ANALIZA is based on the famous "Eliza" program from MIT some years back, but has been greatly enhanced. It provides both enter tainment as well as an interesting example of Artificial Intel Ii gence. Below is a sample: Patient: I have feelings of paranoia Computer: Does it please you to have feelings of paranoia? Patient: No it bothers me Computer: Then why have feelings of paranoia? ANALIZA is a match for anyone. Requires: 48K CP/M, CBASIC2 Cost: $35.00 CP/M Formats: B" soft sectored, 5" Northstar, 5" Micropo lis Mod II, Vector MZ, Superbrain DD/QD All Orders and General Information: SUPERSOFT ASSOCIATES P.O. BOX 1628 CHAMPAIGN, IL 61820 (217) 359·2112 Technical Hol Line: (217) 359·2691 (answered only when lechnlctan Is available) Super.Soft First in Software Technology CPIM REGISTERED TRADEMARK DIGITAL RESEARCH 10 March 1981 © BYTE Publications Inc •Testing and Debugging: This section is actually two in tertwined processes-testing, the search for errors (both syntactic and logical), and debugging, the elimination of those errors. Most programmers estimate that this pro cess can take as much time as both designing and coding. The results in figure 1 (by M V Zelkowitz in " Perspec tives on Software Engineering," ACM Computing Sur veys, June 1978, page 198) support this conclusion. The amount of needed debugging and testing greatly increases depending on the program's size and importance. It de creases with the amount of design and structured pro gramming carried out before the coding. In a multi program system, programs are first tested and debugged (labeled "module test" in figure 1), then the entire system is tested and debugged (labeled "integration test" in figure 1). •Maintenance: This section applies mostly to large pro grams for personal use and systems that are used in a work environment. Maintenance runs the gamut from fixing the occasional (or not-so-occasional) bug, to add ing new features, or to moving a system of programs to an entirely new computer system. It's been estimated that maintenance occupies up to 90 percent of a (professional) programmer's time. Fortunately, most personal computer users don't have to carry this burden. Why Designing Is Necessary Whether we like it or not adventures begin only when something unexpected happens. In fantasy, adventures are always positive and exciting; in real life and in pro gramming, they are usually unwanted, inconvenient, and sometimes costly or dangerous. Only short personal pro grams can squeeze by without some basic design work behind them. If the program gets longer, or if you are writing for somebody else (either friends or employers), you probably can't afford a programming "adventure." Remember that the design process includes finding and making decisions that influence the quality of a program or system. In other words, the more important it is to write the best program, the more design you need to do. Here are some reasons that argue strongly in favor of well-thought-out design: •Limited resources (eg: not enough computer memory or disk space, or a slow system response time) •Time/money constraints (ie: the need to complete a program or system within deadline and under budget) •The need for increased reliability •The need for program stability and flexibility in the face of long-term maintenance In addition to contributing to the quality and reliability of a program, design also contributes to your mental health as a programmer-you usually save time when you design; you eliminate all-night emergency program ming marathons; the process of testing and debugging is shorter and less nerve-racking; and you're less likely to have your program "crash" at an embarrassing or crucial moment. Some Popular Excuses, and Rebuttals "/don't know where to start": Read some of the books Text continued on page 200 Circle 7 on Inquiry card. --+

Reading notes: Garbled characters in ANAllZA~ heading and some OCR-damaged words such as 'ac ceptable' and 'Intel Ii gence' Reading order is uncertain across column breaks and the pie chart caption, which appears interleaved with body text

Printed product names
ANALIZA · Eliza · SUPERSOFT ASSOCIATES · Super.Soft
Printed prices
$35.00
Printed dates
10 March 1981 · June 1978
Languages
English