TweetFollow Us on Twitter

Prog Assistants
Volume Number:7
Issue Number:4
Column Tag:Tools of the Trade

Programmer's Assistants

By Dave Kelly, MacTutor Editorial Board

Programmer’s Assistants Provides Six Developer Utilities

The next time you’re planning a development project don’t forget to include debugging tools. A debugger doesn’t need to be complicated to get the job done either. Most of the time, you just want to see what your program is doing while it is running. This is a lot harder once you compile the application. This requires you to have a knowledge of your favorite debugger’s capabilities. It helps to understand how the Macintosh works too.

Aladdin Systems, Inc., the “StuffIt™” company provides a set of six desk accessory utilities to help you in your development effort. The Programmer’s Assistants isn’t a substitute for a good debugger, but can provide some features that are worth mentioning here. These utilities were written at the time Raymond Lau was developing StuffIt. Ron Kashden wrote the set of routines as an aid to help in-house development. Raymond Lau needed tools to help see what was going on with his program. Eventually, someone suggested that these tools be made available to everyone.

The package has a notebook of documentation and an 800K disk. There are six chapters in the documentation, one for each utility. Each section has its own separate table of contents. The documentation doesn’t have master table of contents or an index. Every chapter has been design to teach the theory and practice upon which each utility is based. Some people use this package strictly to learn the theory presented in the documentation. To find something you must find the chapter’s individual table of contents and look it up from there. Basic On-Line help information is available for each “Assistants” on-screen. Each window provides a button that accesses the help information.

As mentioned above, there are six DA utilities. Depending on the stage of development that you are in, some of them will be more valuable to you than others. Each utility fills a niche not covered by another. You can decide for yourself which utility you want to use. The Programmer’s Assistants names sound like they come from a mystery movie: The Professor, The Bystander, The Detective, The Witness, Continuity and Bean Counter. A description of each follows.

The Professor Numerical Analyzer performs 23 different integer functions. To use the Professor is straight forward. First set the base to binary, decimal, hex, or octal using the pop-up menus. Next the you select the function from a list dialog by clicking the function button. You may select an 8, 16, or 32 bit value for the value fields. Finally, you click on the “Do It” button to calculate. The 2nd value field acts as a mask for several functions.

The documentation contains a lot of information on numbers. The documentation explains conversion theory for base 2 (binary), decimal, hex, and octal. It’s more than just a base conversion calculator. Since the Professor’s 23 functions are available, you can predict the outcome of your code at the time you write it. This will help you get it right the first time.

The functions supported are: Add, And, Arith.Shr, ClearBit, Divide, Hi, HiWord, Lo, LoWord, Logshr, Mod, Multiply, Not, Or, RotateR, RotateL, SetBit, Shl, Subtract, Swap, SwapWord, TestBit, and Xor. You will find that the Professor will be a handy DA to have around.

The Bystander Event Watcher allows you to observe what the Mac is doing. The display shows the status of the mouse, memory, and events as they occur. You can see from the sample “Bystander” window that the Bystander caught my F-Key press when I dumped the Bystander window to a PICT file. It shows that I pressed the “5” key with cmd and shift modifier keys pressed. The mouse location is specified for both global and local coordinates.

Next, the window displays memory information for the current heap block used. The block of memory can be the Application, or the System, or DA Handler if you are running under Multifinder. You also can specify which events you want to have displayed. You can ignore keydown events if you want to, and the Bystander will display whatever the last specified event was.

Bystander is not without problems though. Although it appears to work as documented, there are bombs that occur occasionally when switching from one application to another in MultiFinder.

The Detective is an interactive debugging tool that displays variables related to your program in their proper types. The documentation gives a complete list of over 150 system global variables. These variables can be selected from a list window and actively displayed in a second window. As the variables change the display is updated. The Detective provides a great way to see what’s happening while your program is running.

The Witness is similar to the Bystander, except that this desk accessory records events in the background and logs them in a generic text file named “Event Log”. You can review the log later to figure out exactly what happened if any bugs occur in your program. The Witness allows you to select exactly which events you want recorded. The header of the Event Log data file displays information about the Macintosh you are using. Version 1.0 (reviewed here) does not know about the Macintosh IIci, but is still a very useful tool.

Continuity Document Historian is a DA that helps you keep track of revisions made in multiple documents. The Continuity DA updates the version resource for each file you select in your project. Until the latest versions of ResEdit were release it was still somewhat awkward to update the revision number. Continuity helps you do that. Of course with the latest ResEdit you can use the ResEdit template to update the version resource and save it to several files. This DA was of more use a year or so ago, but can still be used to keep the current version information up to date.

Bean Counter Optimizer is primarily useful to assembly language programmers. This DA allows you to check the code you have written and examine the number of clock cycles. You may then optimize your code by adjusting lines of code for the best performance. It’s a time consuming process to optimize code and the Bean Counter can really help.

There are many complaints about the increasing size of applications today now that memory is easier to afford. If you are programming assembly language, you should pay attention to the size of your application. Bean Counter was used extensively in streamlining StuffIt Deluxe. It should be noted that Bean Counter is the number one reason that developers buy Programmer’s Assistants.

The documentation for Bean Counter includes a summary of the syntax allowed. Bean Counter was designed for use with syntax from a variety of assemblers.

Programmer’s Assistants retails for $99.95, though the street price (via mail order) is about $65. Although the entire set of DAs may not be useful to everyone, these utilities can truly help you in debugging your development project.

Aladdin Systems, Inc.

Deer Park Center Suite 23A-171

Aptos, CA. 95003

408-685-9175

FAX: 408-662-8418

AppleLink: ALADDIN

America OnLine: ALADDIN

Connect: ALADDIN

GEnie: ALADDINSYS

CompuServe: 75016,325

Internet: aladdin@well.sfca.us

Retail Price: $99.95 (street price $65)

New Stuff

Although it seems Microsoft is not supporting QuickBASIC there have been some maintenance releases that you’ll want to know about. The latest version of version 1.0 supports all Macs and systems through 6.0.7. That doesn’t mean that the problems are completely fixed though. At MacWorld Expo in January, Microsoft hinted that QuickBASIC would not remain ignored for long, but there was no more information on what that means.

ZBasic is still alive and well too. Again there are hints of a new version 6.0 of ZBasic later this year. We’ll just wait and see. There was no sign of True Basic at MacWorld and the latest version I have will not run anymore. That’s either because it doesn’t support the latest system (6.0.7) or because it doesn’t support the IIci. At any rate it appears that there are only two BASIC products left.

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Tokkun Studio unveils alpha trailer for...
We are back on the MMORPG news train, and this time it comes from the sort of international developers Tokkun Studio. They are based in France and Japan, so it counts. Anyway, semantics aside, they have released an alpha trailer for the upcoming... | Read more »
Win a host of exclusive in-game Honor of...
To celebrate its latest Jujutsu Kaisen crossover event, Honor of Kings is offering a bounty of login and achievement rewards kicking off the holiday season early. [Read more] | Read more »
Miraibo GO comes out swinging hard as it...
Having just launched what feels like yesterday, Dreamcube Studio is wasting no time adding events to their open-world survival Miraibo GO. Abyssal Souls arrives relatively in time for the spooky season and brings with it horrifying new partners to... | Read more »
Ditch the heavy binders and high price t...
As fun as the real-world equivalent and the very old Game Boy version are, the Pokemon Trading Card games have historically been received poorly on mobile. It is a very strange and confusing trend, but one that The Pokemon Company is determined to... | Read more »
Peace amongst mobile gamers is now shatt...
Some of the crazy folk tales from gaming have undoubtedly come from the EVE universe. Stories of spying, betrayal, and epic battles have entered history, and now the franchise expands as CCP Games launches EVE Galaxy Conquest, a free-to-play 4x... | Read more »
Lord of Nazarick, the turn-based RPG bas...
Crunchyroll and A PLUS JAPAN have just confirmed that Lord of Nazarick, their turn-based RPG based on the popular OVERLORD anime, is now available for iOS and Android. Starting today at 2PM CET, fans can download the game from Google Play and the... | Read more »
Digital Extremes' recent Devstream...
If you are anything like me you are impatiently waiting for Warframe: 1999 whilst simultaneously cursing the fact Excalibur Prime is permanently Vault locked. To keep us fed during our wait, Digital Extremes hosted a Double Devstream to dish out a... | Read more »
The Frozen Canvas adds a splash of colou...
It is time to grab your gloves and layer up, as Torchlight: Infinite is diving into the frozen tundra in its sixth season. The Frozen Canvas is a colourful new update that brings a stylish flair to the Netherrealm and puts creativity in the... | Read more »
Back When AOL WAS the Internet – The Tou...
In Episode 606 of The TouchArcade Show we kick things off talking about my plans for this weekend, which has resulted in this week’s show being a bit shorter than normal. We also go over some more updates on our Patreon situation, which has been... | Read more »
Creative Assembly's latest mobile p...
The Total War series has been slowly trickling onto mobile, which is a fantastic thing because most, if not all, of them are incredibly great fun. Creative Assembly's latest to get the Feral Interactive treatment into portable form is Total War:... | Read more »

Price Scanner via MacPrices.net

Early Black Friday Deal: Apple’s newly upgrad...
Amazon has Apple 13″ MacBook Airs with M2 CPUs and 16GB of RAM on early Black Friday sale for $200 off MSRP, only $799. Their prices are the lowest currently available for these newly upgraded 13″ M2... Read more
13-inch 8GB M2 MacBook Airs for $749, $250 of...
Best Buy has Apple 13″ MacBook Airs with M2 CPUs and 8GB of RAM in stock and on sale on their online store for $250 off MSRP. Prices start at $749. Their prices are the lowest currently available for... Read more
Amazon is offering an early Black Friday $100...
Amazon is offering early Black Friday discounts on Apple’s new 2024 WiFi iPad minis ranging up to $100 off MSRP, each with free shipping. These are the lowest prices available for new minis anywhere... Read more
Price Drop! Clearance 14-inch M3 MacBook Pros...
Best Buy is offering a $500 discount on clearance 14″ M3 MacBook Pros on their online store this week with prices available starting at only $1099. Prices valid for online orders only, in-store... Read more
Apple AirPods Pro with USB-C on early Black F...
A couple of Apple retailers are offering $70 (28%) discounts on Apple’s AirPods Pro with USB-C (and hearing aid capabilities) this weekend. These are early AirPods Black Friday discounts if you’re... Read more
Price drop! 13-inch M3 MacBook Airs now avail...
With yesterday’s across-the-board MacBook Air upgrade to 16GB of RAM standard, Apple has dropped prices on clearance 13″ 8GB M3 MacBook Airs, Certified Refurbished, to a new low starting at only $829... Read more
Price drop! Apple 15-inch M3 MacBook Airs now...
With yesterday’s release of 15-inch M3 MacBook Airs with 16GB of RAM standard, Apple has dropped prices on clearance Certified Refurbished 15″ 8GB M3 MacBook Airs to a new low starting at only $999.... Read more
Apple has clearance 15-inch M2 MacBook Airs a...
Apple has clearance, Certified Refurbished, 15″ M2 MacBook Airs now available starting at $929 and ranging up to $410 off original MSRP. These are the cheapest 15″ MacBook Airs for sale today at... Read more
Apple drops prices on 13-inch M2 MacBook Airs...
Apple has dropped prices on 13″ M2 MacBook Airs to a new low of only $749 in their Certified Refurbished store. These are the cheapest M2-powered MacBooks for sale at Apple. Apple’s one-year warranty... Read more
Clearance 13-inch M1 MacBook Airs available a...
Apple has clearance 13″ M1 MacBook Airs, Certified Refurbished, now available for $679 for 8-Core CPU/7-Core GPU/256GB models. Apple’s one-year warranty is included, shipping is free, and each... Read more

Jobs Board

Seasonal Cashier - *Apple* Blossom Mall - J...
Seasonal Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Seasonal Fine Jewelry Commission Associate -...
…Fine Jewelry Commission Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) Read more
Seasonal Operations Associate - *Apple* Blo...
Seasonal Operations Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Read more
Hair Stylist - *Apple* Blossom Mall - JCPen...
Hair Stylist - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Read more
Cashier - *Apple* Blossom Mall - JCPenney (...
Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Mall Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.