Post your worst variable names

Go down

Post your worst variable names

· #1

I'll start. I found this in a unit I wrote five years ago:

pascal
var
  a, aa, aaa: Integer;
  temp, temp2, temp2_final, temp2_final_REAL: string;
  flag, flag2, notFlag: Boolean;
  thing: TObject;   // do not remove, everything breaks

I still don't know what thing is. I have not removed it.

Re: Post your worst variable names

· #2
pascal
procedure DoIt;
procedure DoIt2;
procedure DoItForReal;
procedure DoItForRealThisTime(Really: Boolean);

All four are called. From different places. I'm afraid to find out why.

Re: Post your worst variable names

· #3

A classic from a codebase I inherited:

pascal
const
  TWO = 3;  // was 2, customer changed their mind

Re: Post your worst variable names

· #4

TWO = 3

I need to sit down.

Pete · thirty years of begin and end "It compiled on my machine."

Re: Post your worst variable names

· #5

whats wrong with a, aa, aaa. thats how i name everything

Re: Post your worst variable names

· #6

We know.

Forum rules 1 to 10 apply. Yes, to you.

Go up

Sign in to reply