View Single Post
09-27-13, 01:11 AM   #26
Digital_Utopia
A Flamescale Wyrmkin
 
Digital_Utopia's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2012
Posts: 110
Originally Posted by fRodzet View Post
True that is!

Creating Templates in XML is easy anyways, but for longer codes i think XML gets really messy and adding comments (<!-- xxx -->) in XML doesn't seem to make it more readable to me.
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.
__________________
  Reply With Quote