Making code unmaintainable...

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

I have to disagree with you all... Long var names are prefered as long as they are descriptive enough... Course I code a lot of RPG stuff... and well..

WD[CW[PC[MC]]]


is impossible to read... while..

Weapon_DMG[Characters_Weapon[Player_Characters[Moving_Character]]]


Now it is clear it is the DMG of the weapon that the character who is currently moving is holding.

I think this extends to all levels...

For example.

A loop should be given a proper var name to define what it is counting...


Full = 29
Stuffed = 80

for Pie_Slices = 1 To 100
  Bobby = Pie_Slices
  If Bobby == Full
     Print "Bobby is Full"
  If Bobby == Stuffed
     Print "Bobby is Stuffed"
End_For
Print "Bobby died from eating too much Pie"
  


Doesn't make any real sense... but you see...


For Battle_Character = 1 To 10
   Character_HP[Battle_Character] = Character_Max_HP[Battle_Character]
End_For



Ok... I'm done.