model view controller - Haxe NME UI: Best practices for MVC application design -
yesterday stumbled across haxe nme project, promising idea. however, still not possible build sophisticated uis framework. in opinion seems intimidating task build ui framework targets many different platforms, hence think isn't viable approach, because old , mature ui frameworks qt , wxwidgets don't support many platforms.
however, make sense build platform specific ui of pretty ui designer tool , connect ui code ui agnostic code has been written in haxe. don't know if work, because couldn't find example, maybe has written mvc haxe code, connected different platform specific uis, share experiences. thanks.
you say:
however, still not possible build sophisticated uis
just because haven't yet figured out how doesn't mean it's not possible ;)
the reason possible in haxe ecosystem, language , compiler extremely consistent cross platform, nme/openfl provides strong cross platform rendering environment (html 5 has quirks, others seem strong) , build on top of these going cover lot of platforms out-of-the-box. it's being high level - letting compiler , libraries take care of platform quirks.
in mvc, ui stuff "view". view / ui frameworks, check out these libraries:
stablex ui
nme/openfl, cross platform. draws components using nme api. 1 i've played with, demo works consistently on android, flash, html5, native linux. pretty impressive.haxeui
nme, cross platform. again, draws components on stage.prime
drawn using flash api. not sure if has been ported cross platform yet.
see talk/video wwx conference , slidesguise
innovative way of being able either draw ui, or use native if available. check out blog post.basis
attempt @ wrapping native components - has ios , android libraries far. pretty cool, haven't played yet.
for mvc, there lots of options:
- primevc, mentioned above.
- mmvc, based on robotlegs framework, tailored haxe.
- lots of small options bbmvc puremvc etc
the advantage of mvc frameworks separate views application data (model) , logic (controller). try spend time familiarising 1 of mvc frameworks, , you'll see how can write apps in way use 1 of these, , of various view engines - either native or nme-rendered. can steep learning curve, how build apps portable between different ui frameworks, , testable know scale app grows in complexity.
Comments
Post a Comment