ECE 2524

Introduction to Unix for Engineers

Text analyser review

Usage

The text analyser isnt anything remarkable, but it works like advertised.

Running ./game.py brings up an interactive prompt to run the wordfreq on three different text files. Typing a letter corresponding to one of the text files runs wordfreq on it.

Style

There are no descriptive comments whatsoever, but most of the code is pretty self-documenting and nothing is terribly complex.

Philosophy

Being an interactive program, this falls into the ed interface pattern. Considering this is pretty much just a thin wrapper around the wordfreq program, this could have benefited from a different interface pattern like the source or filter pattern. Otherwise, there should be more game-like functionality.

Again, being interactive, the rule of silence really takes a back seat. One thing that happens is if I pipe text to stdin on the command line, a bunch of extraneous stuff comes up. It would be cool if I could pipe aabacab and it would print them all out in order. The individual prompts really aren`t necessary.