KP <
kjp...@gmail.com> wrote:
> Another trick that can save you 4 characters in typing in BASIC code is the following:
>
> Rather than typing this:
>
> 10 PRINT CHR$(4);"PR#1"
>
> Instead, type 10 PRINT "
>
> Then, after typing the quotation marks, physically type CONTROL-D on your
> keyboard. Applesoft will record the keypress as a CONTROL-D, even though
> no confirmatory character will appear on the screen.
>
> Then, having typed a CONTROL-D, type PR#1"
>
> I discovered that little maneuver years and years ago while reading
> someone else's source code listing and wondering why none of the beep
> commands were prefaced by CHR$(7); (the equivalent of CONTROL-G), and
> then realizing that the beep noise was audible every time it occurred in
> a LIST of the code, and that must mean that the CONTROL-G had been typed
> into the quotation text. Sample principle applies to CONTROL-D (or any
> other CONTROL character).
readability significantly.
control characters should be made visible by using CHR$.
The number of keystrokes is never a good measure of program quality. ;-)