Logo


Code design

Code is designed for portability, maintainability and clarity.
Naming should be clear and concise, not overly verbose.

Code conventions

General conventions to follow.

function example() {

        //bad. no braces, single line code.
    if(true) return;

        //good
    if(true) {
        return;
    }

} //example

Classes

class format guidelines

package example;


import things;
import more;


class Example {


    public var one : Int;
    public var two : Bool;

    public var property (get,set) : String;

    var three : String;


    public function new() {

    } //new

    public function destroy() {

    } //destroy

    function internal() {

    } //internal


} //Example

Back

To the guide