Okay, I have some new programming habits. I need to know if they are practical.
Why use True/False?
on = True
off = False
if light.on then
JumpForJoy()
end
Sometimes I don't like the names of standard functions:
function Display(text)
print(text)
end
I really like to use Synonyms for functions that do similar but different tasks.
Begin()
Start()
Commence()
Play()
End()
Finish()
Conclude()
Stop()
Being descriptive with my argument names:
function Walk(speed)
speed = true
end
if slowly then
MakeASadPuppyFace()
end
Walk(slowly)
Anyone have any peculiar programming habits that could be of some help?
In other words, any way I can make my code more human-readable?