Good Practices
Codes good practices, pitfalls and tips
LUA
Gain performance: Early Return
local function myMethod()
if condition then
-- do a little dance, make a little love…
end
endlocal function myMethod()
if not condition then return end
-- do a little dance, make a little love…
endFixing/preventing nil access
Switch in LUA: Lookup Tables
Performance killers: strings
Comparing/Searching
Finding in strings
Concatenation
Scopes
Last updated