haxefoundation / haxe.org-comments Goto Github PK
View Code? Open in Web Editor NEWRepository to collect comments of our haxe.org websites
Repository to collect comments of our haxe.org websites
JavaScript workers make it possible to perform costly calculations (media decoding etc, crypt calculations etc.) in a background thread, without blocking the main UI. There are lots of articles about workers on the net:
https://code.haxe.org/category/javascript/javascript-inline-workers.html
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
This snippet shows how to use a string as a variable identifier using reflection.
https://code.haxe.org/category/beginner/string-variable-reflection.html
In Haxe, the List type represents a linked-list of elements.
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
https://haxe.org/manual/std-regex-implementation-details.html
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
In Haxe a regular expression starts with ~/ and ends with a single / and is of type EReg.
https://code.haxe.org/category/beginner/regular-expressions.html
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
In most cases, you want a Main class with a static main function as entry point to start your program. However, there are cases where there is no need for this - for example if you are writing a library that other programs will be using.
https://code.haxe.org/category/compilation/compiling-libraries-without-main-class.html
In Haxe, the Array type represents a collection of elements ordered by their index (order number) in the collection.
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
https://haxe.org/manual/types-structure-optional-fields.html
This macro function automatically assigns parameters of method to local variables.
https://code.haxe.org/category/macros/add-parameters-as-fields.html
Haxe's enumeration types are algebraic data types. Their primary use is for describing data structures.
Sometimes you find yourself in the need of passing different types to the same parameter of a function. While there isn't a built-in way of doing this in Haxe, thanks to its flexible type system, we can solve this problem. We will explore two ways to achieve this.
https://code.haxe.org/category/other/passing-different-types-to-a-function-parameter.html
Sometimes failed assertion checks make it difficult to tell what went wrong. For debugging the programmer not only wants to know that a check failed, but also why it failed. This macro outputs the values of all sub-expressions.
https://code.haxe.org/category/macros/assert-with-values.html
This example uses haxe.Http to load external json file using and demonstrates how to handle the result.
https://code.haxe.org/category/beginner/loading-external-files.html
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
https://haxe.org/manual/introduction-about-this-document.html
Haxe allows you to add static methods to existing classes (eg. Math) via the static extensions feature. The secret sauce is to specify the first parameter of the extension as Class where X is the class you want to add static methods to (eg. Math), and to make the method public.
https://code.haxe.org/category/other/adding-static-methods-to-existing-classes.html
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
The haxe.zip package allows to zip and unzip files and directories using Haxe. This example shows how to use it.
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
Sometimes it is useful make your arrays compile-time, for example to embed data from files, to pre-calculate heavy calculations, generating lookup tables and other similar things. With macros this is perfectly doable but requires some basic knowledge of expression building. In this article you will find out how to build arrays and return them as expressions in a macro function.
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
https://haxe.org/manual/macro-limitations-static-extension.html
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
Haxe makes it easy to define extensions for a typedef, but there is no easy way to combine the values of two or more structures to one, like {a:2} and {b:foo} to {a:2,b:foo}. The following macro does this for you.
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
Often, in games or UI, you might want to create a grid.
https://code.haxe.org/category/data-structures/grid-iterator.html
Haxe has a special range operator for(i in 0...5) to iterate forward. This does not allow to modify i in place, thus you cannot make it iterate in steps.
https://code.haxe.org/category/data-structures/step-iterator.html
A common pattern, often found in (but not only in) dynamic languages, is to denote the type of some object with a string, for example:
https://code.haxe.org/category/abstract-types/abstracts-with-type-params.html
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
Many programming languages split code into two kinds of elements: statements and expressions. Statements perform some action (e.g. if/else) and expressions return values (e.g. a + b).
https://code.haxe.org/category/principles/everything-is-an-expression.html
In Haxe, Map (also known as dictionary) allows key to value mapping for arbitrary value types and many key types.
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
https://haxe.org/manual/types-abstract-operator-overloading.html
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.