RE: [stella] OT: Programming, CS theory

Subject: RE: [stella] OT: Programming, CS theory
From: "Glenn Saunders" <cybpunks@xxxxxxxxxxx>
Date: Thu, 25 Oct 2001 16:21:40 -0700

for(++i;i<lseek(fp)) {i+=lseek(fp+i)};
<<

I hate this crap.

When I code I always go vertical.

if (a)
{
 b = 1;
}
else
{
 b = 2;
}

I always use the brackets. I never used any sort of compacted syntax. I find it much more readable the long way.

I also have a style in my CF that I don't know whether it's good or bad practice in general CS theory, but I make a lot of use of true/false variables which allows me to help spread out code instead of nesting conditionals. Oftentimes when you heavily nest conditionals you'll have to duplicate code blocks (including more conditional logic with them) depending on the program flow. So by not duplicating the code as much the sourcecode gets smaller and it's easier to maintain.





_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


- Archives (includes files) at http://www.biglist.com/lists/stella/archives/ Unsub & more at http://www.biglist.com/lists/stella/

Current Thread