Adobe Flex Authors: Matthew Lobas, PR.com Newswire, Shelly Palmer, Kevin Benedict

Related Topics: Adobe Flex

Adobe Flex: Article

Do You Speak Web?

A look at a young, new programming language - haXe

It is interesting to notice that conditional compilation statements can also be used with your own tags, such as the following:

function myMethod() {
    #if mydebug
    // debug version, adding traces and doing more checks
    #else true
    // standard version, optimized

Then, you only have to compile with haXe command line parameter -D mydebug to use the debug version of this method. This mechanism enables you to compile several versions of your application depending on your needs.

We already saw how the trace method can be used on all platforms; each trace code adds information about the file, class, method, and line number where the trace is performed, and you can redefine at runtime the trace method behavior to log information according to your needs.

Also, haXe programs can be compiled with -debug in order to add debugging information. In Flash and JavaScript, this will produce bigger files and has a little performance post, but you will get information about uncaught exceptions, with the complete stack trace. This feature is enabled natively in Flash 9, if you are using the Debug Player, but haXe adds it to Flash before Flash 9, and to JavaScript, no matter what browser is being used. These features save a great amount of time and energy in debugging haXe programs.

haXe is open source software that is available on Windows, Mac, and Linux. Its license scheme enables you to use it to develop both open source and commercial Web sites without any restrictions. It's a young language, but it's already supported by an active and enthusiastic community of developers who are contributing additional libraries and tools.

The haXe Web site (http://haxe.org) features an automatically generated API reference and a good number of tutorials in order to get started with haXe. The haXe distribution includes a tool called haXelib to share libraries between developers, and a small Web development server to test your Web site locally. Tools such as ScreenWeaver HX (http://haxe.org/swhx) enable you to create a cross-platform haXe desktop application.

haXe technology is used in the production of several professional Web sites with tens-of-thousands daily users. While haXe productivity is maximized when it's used on both the client- and server-side, it's possible, by design, to use it only on one platform, since haXe can interact with other languages as well. For example, it's possible to interoperate between haXe and ActionScript and use Flex components from haXe. A haXe Flash client can also communicate with a Flash Remoting Server by using haXe Remoting. This kind of interoperability enables developers to use haXe without having to change their whole architecture.

Will the haXe approach of simplifying Web development - by having a standardized language - be adopted by a large amount of Web developers? It's up to you to decide.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.

IoT & Smart Cities Stories
IoT is rapidly becoming mainstream as more and more investments are made into the platforms and technology. As this movement continues to expand and gain momentum it creates a massive wall of noise that can be difficult to sift through. Unfortunately, this inevitably makes IoT less approachable for people to get started with and can hamper efforts to integrate this key technology into your own portfolio. There are so many connected products already in place today with many hundreds more on the h...
CloudEXPO New York 2018, colocated with DXWorldEXPO New York 2018 will be held November 11-13, 2018, in New York City and will bring together Cloud Computing, FinTech and Blockchain, Digital Transformation, Big Data, Internet of Things, DevOps, AI, Machine Learning and WebRTC to one location.
SYS-CON Events announced today that IoT Global Network has been named “Media Sponsor” of SYS-CON's @ThingsExpo, which will take place on June 6–8, 2017, at the Javits Center in New York City, NY. The IoT Global Network is a platform where you can connect with industry experts and network across the IoT community to build the successful IoT business of the future.
Andrew Keys is Co-Founder of ConsenSys Enterprise. He comes to ConsenSys Enterprise with capital markets, technology and entrepreneurial experience. Previously, he worked for UBS investment bank in equities analysis. Later, he was responsible for the creation and distribution of life settlement products to hedge funds and investment banks. After, he co-founded a revenue cycle management company where he learned about Bitcoin and eventually Ethereal. Andrew's role at ConsenSys Enterprise is a mul...
DXWorldEXPO | CloudEXPO are the world's most influential, independent events where Cloud Computing was coined and where technology buyers and vendors meet to experience and discuss the big picture of Digital Transformation and all of the strategies, tactics, and tools they need to realize their goals. Sponsors of DXWorldEXPO | CloudEXPO benefit from unmatched branding, profile building and lead generation opportunities.
Disruption, Innovation, Artificial Intelligence and Machine Learning, Leadership and Management hear these words all day every day... lofty goals but how do we make it real? Add to that, that simply put, people don't like change. But what if we could implement and utilize these enterprise tools in a fast and "Non-Disruptive" way, enabling us to glean insights about our business, identify and reduce exposure, risk and liability, and secure business continuity?
The best way to leverage your Cloud Expo presence as a sponsor and exhibitor is to plan your news announcements around our events. The press covering Cloud Expo and @ThingsExpo will have access to these releases and will amplify your news announcements. More than two dozen Cloud companies either set deals at our shows or have announced their mergers and acquisitions at Cloud Expo. Product announcements during our show provide your company with the most reach through our targeted audiences.
DXWorldEXPO LLC announced today that Telecom Reseller has been named "Media Sponsor" of CloudEXPO | DXWorldEXPO 2018 New York, which will take place on November 11-13, 2018 in New York City, NY. Telecom Reseller reports on Unified Communications, UCaaS, BPaaS for enterprise and SMBs. They report extensively on both customer premises based solutions such as IP-PBX as well as cloud based and hosted platforms.
To Really Work for Enterprises, MultiCloud Adoption Requires Far Better and Inclusive Cloud Monitoring and Cost Management … But How? Overwhelmingly, even as enterprises have adopted cloud computing and are expanding to multi-cloud computing, IT leaders remain concerned about how to monitor, manage and control costs across hybrid and multi-cloud deployments. It’s clear that traditional IT monitoring and management approaches, designed after all for on-premises data centers, are falling short in ...
The deluge of IoT sensor data collected from connected devices and the powerful AI required to make that data actionable are giving rise to a hybrid ecosystem in which cloud, on-prem and edge processes become interweaved. Attendees will learn how emerging composable infrastructure solutions deliver the adaptive architecture needed to manage this new data reality. Machine learning algorithms can better anticipate data storms and automate resources to support surges, including fully scalable GPU-c...