|
I like em and I hate em
Posted by Joe Johnson at 12/20/2000 9:35 AM EST
Engineer on team #47, Chief Delphi, from Pontiac Central High School and Delphi Automotive Systems.
In Reply to: Re: Working Agenda for PRACTICAL PBASIC PROGRAMMING
Posted by Mike Gray on 12/20/2000 7:53 AM EST:
I like these operators and I hate them.
They make the code unreadable at times.
I find the variable.bitN and the alias commands to eliminate most of the need for bit masks.
The one place that I like it is if you have switches that are at the end of hard stops for motor (especially relays). If you set up your switch bits and your relays right, you can do a very elegant bitwise XOR in the output statement that performs the off at the end of travel function.
It has saved us from an insane program on a number of occasions, though as we get better at programming we need that feature less and less.
In any case, I will think about how to include bitwise operators in the presentation.
Joe J.
__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
|