WoW:UI best practices: Difference between revisions

m
(rant on order of operations)
Line 85: Line 85:
==== Order of Operations ====
==== Order of Operations ====


Lua, like all other programming languages, executes expressions from left to right starting from the innermost parenthesis to the outermost. This allows for un-nesting of IF blocks.
Lua, like many other programming languages, executes expressions from left to right starting from the innermost parenthesis to the outermost. This allows for un-nesting of IF blocks.


  -- This:
  -- This:
Line 100: Line 100:
  end
  end


: ''Actually, there are several programming languages that does not read left to right, eg. Joy, Factor, J and K etc. Others - like Haskell - can be used both ways. There are even languages that are multi-dimensional! While many of these are mainly academical, they are not esoterical languages made to be weird, but rather based on recent theories and ideas in computer science. /rant'' [[User:Kopokopolo|Kopokopolo]] ([[User talk:Kopokopolo|talk]]) 12:40, 26 January 2009 (UTC)
Note: There are several programming languages that do not read left to right (eg. Joy, Factor, J and K, etc.). Others - like Haskell - can be used both ways. There are even languages that are multi-dimensional. While many of these are mainly academic, they are not esoteric languages made to be weird, but rather based on recent theories and ideas in computer science.


==== Lazy Coding ====
==== Lazy Coding ====
Anonymous user