Haxe Code Cookbook

Community driven Haxe code snippets, examples and tutorials.



Learn with Haxe

There are many ways to learn Haxe. On this website you'll find a lot of resources you need to become a Haxe developer.

So why not start learning and join the community today? If you haven’t learned Haxe yet, the time is now.


Latest articles

Feb 12, 2018 Functional Programming / ML-Style Parse Tree Evaluation

ML-like languages are great for creating interpreters or compilers, by virtue of Algebraic Data Types. Haxe's enum allow for writing similarly elegant code.‥

Read »

Jan 23, 2018 Beginner / Invoke object method by string

To invoke method by it's name you will need to use Reflection API.‥

Read »

Jan 02, 2018 Design patterns / Observer

This is a basic example of the Observer design pattern in Haxe. The pattern makes use of an Observer interface and an Observable base class to notify objects when another object's property is changed so that they can react accordingly.‥

Read »

Nov 21, 2017 Abstract types / Array access of a database manager

When using SPOD database objects, or the record-macros library, instances of database models can be accessed using the manager's get function:‥

Read »

The cross-platform development toolkit

Haxe is a modern high-level strictly-typed programming language with a fast optimizing cross-compiler.

Download Haxe 3.4.7
Released: 2018-02-22

Learning by example

The Haxe Foundation facilitates the following code cookbook for the Haxe commmunity. Enjoy learning Haxe; It is great!

More documentation:

Haxe Manual

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Contribution is easy

The project is being developed on GitHub. Feel free to contribute code snippets, tutorials and how-to guides.

Haxe Code Cookbook on Github

Star   Fork