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

Make the passage of time your plaything...
While some of us are still waiting for a chance to get our hands on Ash Prime - yes, don’t remind me I could currently buy him this month I’m barely hanging on - Digital Extremes has announced its next anticipated Prime Form for Warframe. Starting... | Read more »
If you can find it and fit through the d...
The holy trinity of amazing company names have come together, to release their equally amazing and adorable mobile game, Hamster Inn. Published by HyperBeard Games, and co-developed by Mum Not Proud and Little Sasquatch Studios, it's time to... | Read more »
Amikin Survival opens for pre-orders on...
Join me on the wonderful trip down the inspiration rabbit hole; much as Palworld seemingly “borrowed” many aspects from the hit Pokemon franchise, it is time for the heavily armed animal survival to also spawn some illegitimate children as Helio... | Read more »
PUBG Mobile teams up with global phenome...
Since launching in 2019, SpyxFamily has exploded to damn near catastrophic popularity, so it was only a matter of time before a mobile game snapped up a collaboration. Enter PUBG Mobile. Until May 12th, players will be able to collect a host of... | Read more »
Embark into the frozen tundra of certain...
Chucklefish, developers of hit action-adventure sandbox game Starbound and owner of one of the cutest logos in gaming, has released their roguelike deck-builder Wildfrost. Created alongside developers Gaziter and Deadpan Games, Wildfrost will... | Read more »
MoreFun Studios has announced Season 4,...
Tension has escalated in the ever-volatile world of Arena Breakout, as your old pal Randall Fisher and bosses Fred and Perrero continue to lob insults and explosives at each other, bringing us to a new phase of warfare. Season 4, Into The Fog of... | Read more »
Top Mobile Game Discounts
Every day, we pick out a curated list of the best mobile discounts on the App Store and post them here. This list won't be comprehensive, but it every game on it is recommended. Feel free to check out the coverage we did on them in the links below... | Read more »
Marvel Future Fight celebrates nine year...
Announced alongside an advertising image I can only assume was aimed squarely at myself with the prominent Deadpool and Odin featured on it, Netmarble has revealed their celebrations for the 9th anniversary of Marvel Future Fight. The Countdown... | Read more »
HoYoFair 2024 prepares to showcase over...
To say Genshin Impact took the world by storm when it was released would be an understatement. However, I think the most surprising part of the launch was just how much further it went than gaming. There have been concerts, art shows, massive... | Read more »
Explore some of BBCs' most iconic s...
Despite your personal opinion on the BBC at a managerial level, it is undeniable that it has overseen some fantastic British shows in the past, and now thanks to a partnership with Roblox, players will be able to interact with some of these... | Read more »

Price Scanner via MacPrices.net

You can save $300-$480 on a 14-inch M3 Pro/Ma...
Apple has 14″ M3 Pro and M3 Max MacBook Pros in stock today and available, Certified Refurbished, starting at $1699 and ranging up to $480 off MSRP. Each model features a new outer case, shipping is... Read more
24-inch M1 iMacs available at Apple starting...
Apple has clearance M1 iMacs available in their Certified Refurbished store starting at $1049 and ranging up to $300 off original MSRP. Each iMac is in like-new condition and comes with Apple’s... Read more
Walmart continues to offer $699 13-inch M1 Ma...
Walmart continues to offer new Apple 13″ M1 MacBook Airs (8GB RAM, 256GB SSD) online for $699, $300 off original MSRP, in Space Gray, Silver, and Gold colors. These are new MacBook for sale by... Read more
B&H has 13-inch M2 MacBook Airs with 16GB...
B&H Photo has 13″ MacBook Airs with M2 CPUs, 16GB of memory, and 256GB of storage in stock and on sale for $1099, $100 off Apple’s MSRP for this configuration. Free 1-2 day delivery is available... Read more
14-inch M3 MacBook Pro with 16GB of RAM avail...
Apple has the 14″ M3 MacBook Pro with 16GB of RAM and 1TB of storage, Certified Refurbished, available for $300 off MSRP. Each MacBook Pro features a new outer case, shipping is free, and an Apple 1-... Read more
Apple M2 Mac minis on sale for up to $150 off...
Amazon has Apple’s M2-powered Mac minis in stock and on sale for $100-$150 off MSRP, each including free delivery: – Mac mini M2/256GB SSD: $499, save $100 – Mac mini M2/512GB SSD: $699, save $100 –... Read more
Amazon is offering a $200 discount on 14-inch...
Amazon has 14-inch M3 MacBook Pros in stock and on sale for $200 off MSRP. Shipping is free. Note that Amazon’s stock tends to come and go: – 14″ M3 MacBook Pro (8GB RAM/512GB SSD): $1399.99, $200... Read more
Sunday Sale: 13-inch M3 MacBook Air for $999,...
Several Apple retailers have the new 13″ MacBook Air with an M3 CPU in stock and on sale today for only $999 in Midnight. These are the lowest prices currently available for new 13″ M3 MacBook Airs... Read more
Multiple Apple retailers are offering 13-inch...
Several Apple retailers have 13″ MacBook Airs with M2 CPUs in stock and on sale this weekend starting at only $849 in Space Gray, Silver, Starlight, and Midnight colors. These are the lowest prices... Read more
Roundup of Verizon’s April Apple iPhone Promo...
Verizon is offering a number of iPhone deals for the month of April. Switch, and open a new of service, and you can qualify for a free iPhone 15 or heavy monthly discounts on other models: – 128GB... Read more

Jobs Board

IN6728 Optometrist- *Apple* Valley, CA- Tar...
Date: Apr 9, 2024 Brand: Target Optical Location: Apple Valley, CA, US, 92308 **Requisition ID:** 824398 At Target Optical, we help people see and look great - and Read more
Medical Assistant - Orthopedics *Apple* Hil...
Medical Assistant - Orthopedics Apple Hill York Location: WellSpan Medical Group, York, PA Schedule: Full Time Sign-On Bonus Eligible Remote/Hybrid Regular Apply Now Read more
*Apple* Systems Administrator - JAMF - Activ...
…**Public Trust/Other Required:** None **Job Family:** Systems Administration **Skills:** Apple Platforms,Computer Servers,Jamf Pro **Experience:** 3 + years of Read more
Liquor Stock Clerk - S. *Apple* St. - Idaho...
Liquor Stock Clerk - S. Apple St. Boise Posting Begin Date: 2023/10/10 Posting End Date: 2024/10/14 Category: Retail Sub Category: Customer Service Work Type: Part Read more
Top Secret *Apple* System Admin - Insight G...
Job Description Day to Day: * Configure and maintain the client's Apple Device Management (ADM) solution. The current solution is JAMF supporting 250-500 end points, Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.