Haxe Code Cookbook

Easy to read Haxe coding examples.

Start browsing..

Beginner (14)Abstract types (5)Compilation (1)Data structures (4)Design patterns (3)Functional Programming (1)JavaScript (3)Macros (16)Principles (3)Other (4)


 expression-macro (9) building-fields (7) build-macro (6) abstract-type (6) enum (5) javascript (5) data-structures (4) iterator (3) validation (3) collections (3) dead-code-elimination (3) pattern-matching (3) class (3) array (3) math (2) ereg (2) arguments (2) conditional-compilation (2) libraries (2) static-extension (2) cppia (1) html (1) server (1) canvas (1) type-parameter (1) modules (1) git (1) extern (1) type-parameter-constraint (1) process (1) type-params (1) reflection (1) functional-programming (1) nodejs (1) dom (1) filesystem (1) build-function (1) completion (1) binary (1) json (1)

Newest articles

28-02-2017 JavaScript / Create a server with Haxe/NodeJS

The following tutorial creates a http server using Haxe/Node.js at port 8000 and demonstrates how to build and run it.‥

Read »

27-02-2017 Beginner / Loading an external file

This example uses haxe.Http to load external json file using and demonstrates how to handle the result.‥

Read »

27-02-2017 JavaScript / Adding a HTML element to the DOM

This is an example to add a paragraph element to the HTML page when the DOM is ready. This tutorial contains two methodes; with and without jQuery.‥

Read »

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.

Haxe Code Cookbook on Github