View Single Post
10-09-12, 09:55 AM   #8
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
Whitespace is just a minor inconvenience, but variable names that offer no information as to what values are put in them is the real meaning of obfuscation.



The code block in question was this.
Code:
local xt,yt,zt = GetSpellCooldown(spellID)
local cdt = (xt + yt) - GetTime()
Even though it's a couple lines, the point is still there.
If speed is your concern, it would be quicker to type and more meaningful to use local s,d,e.


References on the word obfuscation:
http://dictionary.reference.com/browse/obfuscation
http://wiki.answers.com/Q/What_is_ob...fuscation_used
http://sawaal.ibibo.com/computers-an...on-140331.html
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 10-09-12 at 10:46 AM.
  Reply With Quote