Subject: Re: [stella] OT: Programming, CS theory From: Greg Miller <gmiller@xxxxxxxxxxxxxxxxx> Date: Thu, 25 Oct 2001 18:50:13 -0500 |
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.
- Archives (includes files) at http://www.biglist.com/lists/stella/archives/ Unsub & more at http://www.biglist.com/lists/stella/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [stella] OT: Programming, CS th, Glenn Saunders | Thread | Re: [stella] OT: Programming, CS th, B. Watson |
Re: [stella] Stelladoc v2 status re, B. Watson | Date | RE: [stella] OT: Programming, CS th, B. Watson |
Month |