|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#4
|
|||
|
|||
|
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. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Parallax Stamp DIED!!! | Carl Owenby | Programming | 1 | 16-02-2003 14:44 |
| PBASIC 2.5 answer from Parallax | JasonS | Programming | 6 | 07-01-2003 19:21 |
| Now subbing for Parallax . . .Dr. Joe! | archiver | 2001 | 2 | 23-06-2002 22:26 |
| Parallax Basic Stamp Workshop | archiver | 2000 | 1 | 23-06-2002 22:08 |
| Will the parallax stamp software run win win2k? | Joe Ross | Programming | 5 | 25-08-2001 13:38 |