Programming Notes


This section discusses some frequently encountered problems. It covers:

Using Relative Pathnames

Applications should always use pathnames relative to the location from which the application boots.

For example, during development an application boots from /remote. If artwork is located in $boot/art.... , the program should refer to those files as art/.... During development, the pathname is then resolved to /remote/art since the program booted from /remote.

A title should use $boot and other aliases explicitly only in cases where an absolute path is needed because the program would not know how to resolve a relative pathname. Generally, all programs should be able to resolve a relative pathname, with the current location being the point from which the program was entered.

Warning: Never use /remote in a pathname; it won't be available on an end-user machine.

Hints on Error Checking and Other Advice

Here are some common problems and advice on how to avoid them: