< previous page page_519 next page >

Page 519

63aae95d7142d91b7e908a3e5868baf1.gif 63aae95d7142d91b7e908a3e5868baf1.gif
which it was,
and that it impinged on his personal integrity as a programmer,
which it did,
so he refused to do it.
The Head Salesman talked to Mel,
as did the Big Boss and, at the boss's urging,
a few Fellow Programmers.
Mel finally gave in and wrote the code,
but he got the test backwards,
and, when the sense switch was turned on,
the program would cheat, winning every time.
Mel was delighted with this,
claiming his subconscious was uncontrollably ethical,
and adamantly refused to fix it.
63aae95d7142d91b7e908a3e5868baf1.gif 63aae95d7142d91b7e908a3e5868baf1.gif
After Mel had left the company for greener pa$ture$,
the Big Boss asked me to look at the code
and see if I could find the test and reverse it.
Somewhat reluctantly, I agreed to look.
Tracking Mel's code was a real adventure.
63aae95d7142d91b7e908a3e5868baf1.gif 63aae95d7142d91b7e908a3e5868baf1.gif
I have often felt that programming is an art form,
whose real value can only be appreciated
by another versed in the same arcane art;
there are lovely gems and brilliant coups
hidden from human view and admiration, sometimes forever,
by the very nature of the process.
You can learn a lot about an individual
just by reading through his code,
even in hexadecimal.
Mel was, I think, an unsung genius.
63aae95d7142d91b7e908a3e5868baf1.gif 63aae95d7142d91b7e908a3e5868baf1.gif
Perhaps my greatest shock came
when I found an innocent loop that had no test in it.
No test. None.
Common sense said it had to be a closed loop,
where the program would circle, forever, endlessly.
Program control passed right through it, however,
and safely out the other side.
It took me two weeks to figure it out.
63aae95d7142d91b7e908a3e5868baf1.gif 63aae95d7142d91b7e908a3e5868baf1.gif
The RPC-4000 computer had a really modern facility
called an index register.

 
< previous page page_519 next page >

If you like this book, buy it!