
29-10-2004, 14:07
|
 |
 |
Why did I come back?
AKA: Jamie Bliss
 FRC #4967 (That ONE Team)
Team Role: Mentor
|
|
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
|
|
|
Re: Programming - Getting Started
- Don't make everything inline! It is a lot easier to maintain, expand, etc. if all the code that actually interacts with stuff is buried, because you only need to change it once.
- The compiler is extremely weird. If you get syntax errors for no apparent reasons (after checking for things like parens, semi-colons, etc.), type the line again, including the line breaks on each side.
- If you really can't figure it out, sleep on it. Meaning: Leave it be and come back tomarrow.
- [edit]Use #define for I/O port references. Same as reason the first: If you change which port it's on, you don't have to go through all your code.[/edit]
Last edited by Astronouth7303 : 29-10-2004 at 15:18.
|