View Single Post
09-27-13, 02:21 AM   #27
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Originally Posted by Digital_Utopia View Post
You really shouldn't need comments - that's what the "name" attribute in the root node is for. If you strive for a kinda quasi-OOP method, where each object will have its own lua file, and an accompanying xml file, things stay very neat and orderly, making maintaining and changing things a lot easier.

While I'm not going to argue that hammering out an entire UI in lua isn't easier in the short term, it's generally considered extremely lazy to mix visual elements and code in any language/api that has a layout system.
I rather use xml for addon options then lua. If blizzard uses it too then why shoudn't we?
  Reply With Quote