Editor’s Forumn
June 1995
This issue of the QHJ is a little smaller that I would like. I’ve been busy getting ready for the QL show in Oak Ridge, Tennessee. This is the same show that has been held in Newport, Rhode Island, but Bob Dyl wanted to try a different place this year.
I’ve been busy making some distribution disks of some QL programming freeware, verifying the entries in the Sinclair INTERNET Resources List, printing up this list, printing up a hard copy of the QHJ, MausNet, and Z88 e-mail lists, spending a week on a trip to Pensacola, Florida (It’s tougher when you travel with 2 kids), and all the other QL related stuff I do normally.
For those QHJ readers on the net (which is most), you might know that the QL Mailing list that was maintained by Beppe Zannetti is no more and has been sort of absorbed into the QHJ e-mail list. I’ve also been asked to break out the MausNet readers out of the e-mail list. Due to bandwidth restrictions, it turns out that it is better to mail the QHJ to one MausNet reader and have him post it to the MausNet QL news-group. So that others can use either of these mailing lists, I plan to put them on the QL Anon-FTP servers (those in Finland, Norway, and Italy).
I’ve noticed that the Sinclair (Spectrum/ T/S 2068) mailing list is now gone. This means that T/S 2068 and Spectrum users have no mailing lists. I’ve also noticed more ZX81 interest on comp.sys.sinclair, some from people that have recently picked up older machines at a flea market (or boot sale for those on the other side of the pond), and others that have discovered the various emulators available.
I would like to start a Master Sinclair E-Mail list. I hope to create an Archive database with users names, e-mail addresses, and what computer they have. From this database, I can generate any e-mail list I want (with names or just the e-mail address). If you know of anyone out there that would like to be on a Master Sinclair list, have them send me an e-mail note. It is the ZX81, Spectrum, T/S 2068, and Z88 users that I need the most. I think I’ve got most of the QL users out there. I don’t plan to make these mailing lists into a LISTSERV type of system (collecting then redistributing Sinclair e-mail message), but more as a phone book to look up Sinclair persons and to use when wanting to do a mass mailing (instead of a USENET posting).
As mentioned above, I’ve prepared a more up-to-date Sinclair INTERNET Resources List. It contains a list of Sinclair FTP sites, Gopher sites, World Wide Web Sites, Mailing lists, USENET Newsgroups, etc. Like the e-mail lists, I will put a copy on the three Anon-FTP servers.
One project that I am thinking about working is another version of the Structured SuperBasic (SSB) filter. For those that don’t know SSB, lets you write SuperBasic programs with no line number and indenting, and will add the line numbers for you. I’m thinking about adding support similar to that found in the C preprocessor, such as; #define, #ifdef, #end, #elseif, etc. I also plan to compile the program and make it all available on the three Anon-FTP servers. I’m looking to see if there is any interest out there for this. Let me know.
In QHJ #19 was an article on the Soundex algorithm. For some odd reason I could not get the code to compile. I know I had to be missing something. Peter Tillier found what I was missing. In the comment preceding the FOR statement, it is terminated with a * and not a */. This comments out a bunch of code until the next */. Don’t you hate it when it’s the little things that get you?
Per-Erik Foreseen of Sweden, where my great grandparents came from, has provided the QHJ with it’s first article dealing with assembly language. I’m glad to have it, since a number of you commented in the readers survey that you wanted to see articles on assembly.
QHJ Freeware Awards
Last Issue I introduced the QHJ Freeware Awards and asked for votes on programs for each category. My original idea was to decide the awards myself, but I felt it would be a good idea to get your input. Well, after getting only one response, I did have to decide the awards myself. At least I gave it a shot. Below is the list of categories and the winners. After each category I will give a short discussion on why I chose that particular winner. Since this is the first year for these awards, I have expanded the criteria for consideration to include any Freeware program up to this point.
Best Pointer Environment Program:
MineField by Phillipe Troin
Of all of the Freeware PE programs I have seen, MineField stands well above them. MineField looks and feels like a professional PE program. It uses a number of PE features in the same manner that other PE programs do (like QPAC2). A number of different mouse cursors are used. The skull and crossbones cursor when you lose and the thumbs up cursor when you win are nice touches. I’ve seen some other freeware PE games, but none look as excellent as MineField. It’s design and development shows an in-depth knowledge of the PE by Phillipe. If you wanted a program as an example of how to do PE programs, MineField would be that example.
Best Non-Pointer Environment Program
QED by Jan Bredenbeek
I know this program has been around a while, but as far as an impact in the QL community, I think few programs have gone as far as QED. QED is the standard text editor distributed with any program package that needs one (like C68, Intergroup Freeware Exchange, etc.).
Best Port to QL
ZIP/UNZIP by Erik Slagter
There were a lot of contenders in this category. A large number of programs have been ported to the QL. Most have been ported directly, with some consideration for the special needs of the QL. ZIP/UNZIP has taken the functionality of the most popular archiving program, brought it to the QL, and added support for the QDOS header information so that executables will archive well.
Best Language or Language Utility
C68 by Dave Walker
No other compiler has done as much for the QL as C68. C68 has provided many users a full K&R C compiler which allows them to either write their own programs or port programs to the QL. It is a very comprehensive and complete C compiler.
Best Programmer
Jonathan Hudson
Jonathan Hudson has written programs that have dominated communications on the QL. QeM, QTPI, and QFAX are the standards in QL communications. Jonathan has consistently written solid programs with few bugs.
Well, there they are. The First Annual QL Hacker’s Journal Freeware Awards. I have made up some award certificates (I had to learn Page Designer 3 to do it) and I will mail them to all of the award winners.
Next year I would like to keep the contenders down to just those programs released in 1995 – mid-96 time frame. I would also like to get a little more input from you the reader. I don’t mind coming up with my own winners, but I do not get a chance use all freeware programs, so I can’t make a very informed decision.
JOYFU or Find The Missing Contruct
JOYFU when sounded out means “Joyful, with no L” or as it is really supposed to be sounded out “Joyfull Noel.” The lack of an L turns one word into two.
This is sort of an interesting introduction to missing letters or contructs. I happen to read a DoD journal called “CrossTalk, The Journal of Defense Software Engineering.” Most of the journal is either on Ada or above my head. The best part of the journal is the “Curmudgeon’s Corner.” It’s a sort of rambling article, written by Robert Bliss, talking about software topics.
In this last issue, Robert talks about missing letters.
Robert writes:
“The intentional omission of words was the motivation behind Georges Perec’s 1969 novel ‘La Disparition.’ The author created a lipogram, a work in which something is prohibited, in this case any word containing the letter E. Perec wrote the work in French, which uses E for almost everything. When he completed ‘La Disparition’, Georges Perec realized he now had an abundance of unused words containing the E left over. So he wrote his next work, ‘Les Revenentes’, with E as the only vowel used. (Do you ever get the feeling that some people have far too much time on their hands?)”
Robert then ponders how interesting it would be to write software where a contruct is prohibited. I know that the GOTO command has suffered this prohibition in the past with a number of very well known articles. But, would it be possible to write something with out a FOR loop, or a WHILE statement. I doubt that you could write something without a IF statement, but it might be possible. An interesting demonstration of this would be a few code segments that would demonstrate how one would build a replacement for any particular contruct. How you would write a FOR loop with a WHILE statement, how you would write a WHILE statement with a FOR statement, etc. I remember back in Computer Architectures class we were told that an entire computer could be constructed of only NOR gates. They showed how every other gate (OR, AND, XOR, NOT, etc.) could be constructed with a number of NOR gates (I think it was the NOR gate).
I’m hoping someone will take this challenge and produce some code. It’s the little puzzles like this that make programming fun.
Language Design Principles
Jon Bentley has been around computers for years, spending most of his time with AT&T Bell Labs (the birth place of UNIX and C). In an article in “UNIX Review”, Jon mentions some guidelines on building languages. I thought these guidelines also apply to writing other programs, so I thought I would pass them along. The items below are taken from the article. My comments are in []’s.
[ Jon discussed his ideas with a few major points listed below.]
A Zoo of Examples. Start with the zoo to define your problem, use it for testing throughout development, and put the best examples into the documentation.
- If you are doing a graphing program, start with a number of example graphs that you want to be able to create using your program. Use them to help you decide what type of features you want your program to support.
[You could also think of all of the strange cases in which your program might blow up at. This would provide a good zoo of examples.]
- A Working Description. Create a one- or two-page outline of your Language to ensure a cohesive design.
[ Clearly defining your problem at the start will have headaches in the design and coding process.]
- The User’s Manual. Document your language or GUI’s goals and architecture from the user’s perspective.
- To create a program that is designed for the user, write your documentation first, describing how you want the program to run, and then write your code based on this. It’s too easy to take short cuts in programming, because it’s easy to implement and not easy to use.
[ Writing the manual afterwards may base the functionality on the program and not how it’s supposed to interact with the user. Focus on your user interface and functionality, then work on the code.]
[ A sidebar to the article had a listing of Language Design Principles that complement the article.]
Language Design Principles
- Design Goals. Before you design, carefully study the problem you are trying to solve. An old rule of thumb states that the first 10% of programming effort provides 90% of the functionality; can you make do with a small implementation that cheaply provides for the 90%, or do you have to use more powerful tools to get to 99.9%.
- Simplicity. Keep you language as simple as possible. A smaller system is easier for its implementers to design, build, document, and maintain and is easier for its users to learn and use.
Yardsticks of Design
Here are some desirable properties of interfaces:
- Orthogonality: keep unrelated features unrelated.
- Generality: use an operation for many purposes.
- Parsimony: delete unneeded operations.
- Completeness: make the system implement all operations of interest.
- Similarity: make the interface as suggestive as possible.
- Extensibility: make sure the system can grow.
- Openness: let the user “escape” to use related tools.
The Design Process. Like other great software, languages are grown, not built. Start with a solid, simple design expressed in a succinct notation. Before implementing the language, test your design by performing a wide variety of operations. After the system is up and running, interate designs to add features as dictated by your customer’s needs.
QL Hacker’s Journal
c/o Tim Swenson
[address omitted]
[phone number omitted]
[e-mail address omitted]
[e-mail address omitted]