Making code unmaintainable...

Miscellaneous Forums/General Discussion/Making code unmaintainable...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

if used in a sensible way, one letter vars add to simplicity
and readability of code...it really depends on the context.

var=othervar[i];

most people will use this approach...it makes sense, i is the
index used to deref a value in an array. n is also commonly
used here, nth index...

jst as, x and y are often used index 2d arrays..

it doesnt really matter, but people tend to relate single
letter vars to temp locals..scratch vars..

for(int i=0;i<gvec_len;++i)gvec[i]*=gvec[i];

another common use may be..

enum{X,Y,Z};

vec[X]=0.5f;
vec[Y]=0.5f;
vec[Z]=0;

then again, perhaps im totally wrong :] ;)