Comparision of coding styles

Wednesday, July 15, 2009

this link has a tutorial for writing an analog clock in actionscript. I've ported it to haxe using two coding styles, one is pure haxe, the other in xml&hscript, to show you they are equally powerful, and the choice is completely yours. two things to note, clocks start ticking once loaded, from the time of creation, so the xml has the initialization offset of the all the xml parsing, its not a bug, as they could represent different time-zones. Secons, is that had this not been a demonstration, i would have probably gone with a 3rd hybrid coding style, using hscript in the haxe .hx file, instead of multiple classes...

No comments:

Post a Comment