Go to Post There are NO old, bold electrical engineers! - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > Old Forum Archives > 2001
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Spotlight this post!  
Unread 24-06-2002, 00:53
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
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.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PBASIC ARCTAN function Greg Ross Programming 14 11-05-2003 12:28
Need to learn PBASIC...Where Should I Go? IMDWalrus Programming 5 29-04-2003 16:43
Obscure PBASIC for RoboEmu rbayer Programming 1 28-03-2003 23:57
PBasic 2.5 vs. 2.0 Anthony Kesich Programming 6 09-02-2003 22:06
PBasic Question Melissa H. Programming 28 17-11-2002 18:53


All times are GMT -5. The time now is 12:29.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi