|
Re: Something to be said for readable code...
Posted by Nate Smith at 2/15/2001 6:55 PM EST
Other on team #66, Frostbite, from Willow Run High School and GM Powertrain.
In Reply to: Re: Something to be said for readable code...
Posted by Stephen on 2/15/2001 6:26 PM EST:
: I agree with you in that one should write clean code, but when one starts to run out of the alloted 26 variables, clean code becomes less important and working code becomes the major line of thought. Just my opinions, I don't know what they teach to CS majors (I'm only a freshman in highschool), but I imagine that when they do teach you things, they don't teach them on the premise that you are restricted in your variable space.
Actually, a project that I had in my assembler class last semester was half graded based on size, with the smallest program getting all the points, and then going from there...you'd be surprised what ideas people came up with in order to shave a few bytes off their programs...
And a little more on topic, remember that you don't necessarily have 26 variables, but rather 26 bytes....so if you can get away with using a nibble or even a bit for something(not a PWM output obviously, but for some other things) then that gives you a little more room to play with...and don't forget those ever-helpful aliases...
Nate
__________________
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.
|