Friday, April 16, 2010

Flash targets of haXe

Flash provides an effective and easy way to develop interactive graphical applications such as games and interactive websites. Flash technology has three languages and two virtual machines: ActionScript1 and ActionScript2 run on AVM and ActionScript3 language runs on the latest AVM2. These two VM is considered as Flash and Flash9: two different platforms.
HaXe supports both of the above platforms. With features like generics and type-inference, Haxe is well thought-out as an enhanced programming language than the most recent AS3. The complier also runs faster and produces quicker code than that of AS3.
Many tools are there to leverage our existing investment with flash and use third-party Flash and AS3 libraries:
• A .swf file of Flash IDE can be used by HaXe compiler easily to get the graphic assets.
• We can use Haxe libraries from AS3 by using the SWC output of HaXe program.
• The AS3 generator of haXe can convert a haXe program to a corresponding AS3 code.
HaXe has the following features which overcomes that of flash:
• We can compile our program with HaXe to any version of Flash. Thus, haXe eases our way for backward compatibility.
• HaXe codes are generic and inline. So, its compiler runs faster than the Flex SDK.
• Haxe is fully compatible with Flex and Flash. So, we can run haXe codes in Flash or Flex easily.
• With the help of haXe we can use Haxe libraries with AS3 using SWC.
• We can access low level memory with it and hence increases speed greatly.
• Lightweight streaming videos can be obtained from haXe over RTMP protocol.
See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide




List of my works:

Technical Support:

If you still face the technical problem, please get support of our highly skilled technical team: garazlab.com.


Wordpress Plugins:
  1. Real-Time Health Data from Every Where:WP plugin to display real-time health data & increase sale by promoting user specific products according to health information: garazlab.com.
  2. Woocommerce Stock Notification Builder:Sends desktop, mobile & email notifications with full customization.Build your own product notification system with it: garazlab.com.

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide

Thursday, April 15, 2010

Haxe supports of javascript target

JavaScript is a client side scripting language that runs on almost every browser. Using JavaScript, we can also dynamically reload some part of the webpage by Ajax style programming.
HaXe compiler can convert a HaXe program into .js file which can run on all browsers. It also overcomes two major drawbacks of JavaScript:
• Using static type system of HaXe, we can build and maintain larger JavaScript applications, and identify most errors at compile-time instead of runtime. It also enables our IDE to provide code completion while editing haXe/JavaScript programs.
• We use JavaScript library or a group of .js files, although most of the times we need a few part of code to meet our need. Haxe compiles only the minimal set of classes that we need, making as simple as it could be.
And it also boosted with the following features:
• Though JavaScript2 is not available yet, but Haxe comes up with lots of features of JavaScript2.
• We will see the great autocompletion of DOM using HaXe.
• We can run Haxe’s js files with other JavaScript library using extern classes.
See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide




List of my works:

Technical Support:

If you still face the technical problem, please get support of our highly skilled technical team: garazlab.com.


Wordpress Plugins:
  1. Real-Time Health Data from Every Where:WP plugin to display real-time health data & increase sale by promoting user specific products according to health information: garazlab.com.
  2. Woocommerce Stock Notification Builder:Sends desktop, mobile & email notifications with full customization.Build your own product notification system with it: garazlab.com.

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide

Benefits of exception handling

Using exception handling adds some extra code to our program. Then why we will use it? It has some advantage over traditional error handling system.
We can separate error handling code from regular code using exception handling
Exception handling moves the errors up the call stack.
We can group and differentiate error types with it.
See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide




List of my works:

Technical Support:

If you still face the technical problem, please get support of our highly skilled technical team: garazlab.com.


Wordpress Plugins:
  1. Real-Time Health Data from Every Where:WP plugin to display real-time health data & increase sale by promoting user specific products according to health information: garazlab.com.
  2. Woocommerce Stock Notification Builder:Sends desktop, mobile & email notifications with full customization.Build your own product notification system with it: garazlab.com.

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide

calling Lambda methods in haXe

The calling procedure of lambda method is same for all the methods. The first parameter is an iterable. Lambda function will operate on it. We can take functions as a parameter. For instance, we can call the exists function like:
static function exists( t : Iterable , func : A -> Bool ) : Bool
Here the first parameter is iterable and the second one is a function. Lambda will iterate over iterable t. During traversing, function func will be called on every iterator. This function will take a single argument of the same type as the iterator. This function can be anonymous type.

See the book
OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide




List of my works:

Technical Support:

If you still face the technical problem, please get support of our highly skilled technical team: garazlab.com.


Wordpress Plugins:
  1. Real-Time Health Data from Every Where:WP plugin to display real-time health data & increase sale by promoting user specific products according to health information: garazlab.com.
  2. Woocommerce Stock Notification Builder:Sends desktop, mobile & email notifications with full customization.Build your own product notification system with it: garazlab.com.

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide

Abstract class with haXe

There is no abstract class in haXe. An abstract method is a method that is declared without an implementation. We can define a private constructor. This way, such a class can't be constructed. Only subclasses might define a public constructor.

We cannot define any abstract method in haXe either. But there is a way to gain the power of abstract feature in haXe. When an abstract class is subclassed, the subclass usually provides implementations for all of the abstract methods in its parent class. So, we need to define an empty body (or maybe throw an exception) in the main class. Then these functions will be overridden in subclasses.
See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide




List of my works:

Technical Support:

If you still face the technical problem, please get support of our highly skilled technical team: garazlab.com.


Wordpress Plugins:
  1. Real-Time Health Data from Every Where:WP plugin to display real-time health data & increase sale by promoting user specific products according to health information: garazlab.com.
  2. Woocommerce Stock Notification Builder:Sends desktop, mobile & email notifications with full customization.Build your own product notification system with it: garazlab.com.

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide

Auto load in haXe

HaXe uses autoloading feature of php. It dynamically autoloads the class definitions when it is needed. It has a drawback also. It checks the lib folder for type definition checking. To reduce the impact of this operation we can create a cache folder at the same level of lib and also give write permission to it to store the files. Then when we run our next haXe program, it will automatically generate a file named ‘haxe_autoload.php’. This file will contain all the necessary information for autoloading a class.
We can see the result while autoloading a large number file. We should use this feature only on production server, because in the development server we may create several classes for testing.
See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide




List of my works:

Technical Support:

If you still face the technical problem, please get support of our highly skilled technical team: garazlab.com.


Wordpress Plugins:
  1. Real-Time Health Data from Every Where:WP plugin to display real-time health data & increase sale by promoting user specific products according to health information: garazlab.com.
  2. Woocommerce Stock Notification Builder:Sends desktop, mobile & email notifications with full customization.Build your own product notification system with it: garazlab.com.

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide

override with haXe

We can override a method of super class with a method of subclass. We must precede the method with override keyword. In haXe 2.x, it is mandatory to use override keyword while overriding a method in super class with that of subclass. The override keyword brings the following features:
We know that super class method actually exists.
This prevents overriding a super class method accidentally.
Using the override keyword, we inherit the types of attributes of super class method. So, we need not to redeclare it.
See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide




List of my works:

Technical Support:

If you still face the technical problem, please get support of our highly skilled technical team: garazlab.com.


Wordpress Plugins:
  1. Real-Time Health Data from Every Where:WP plugin to display real-time health data & increase sale by promoting user specific products according to health information: garazlab.com.
  2. Woocommerce Stock Notification Builder:Sends desktop, mobile & email notifications with full customization.Build your own product notification system with it: garazlab.com.

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide

how import works in haXe

We can gain access to all the attributes of a file without needing to specify the package name using imports.
package my.pack2;
class C2 extends my.pack.C {
}
Is identical to the following :
package my.pack2;
import my.pack.C;

class C2 extends C {
}
When use imports we can have access to Enum types. This is the main difference between the above two.
We can have access to a single type with import keyword. Suppose we have a class like:
package my.pack2;
typedef A = { a : String }
typedef B = { b : String }
import my.pack2.A; we can do to load multiple types in haXe.
See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide




List of my works:

Technical Support:

If you still face the technical problem, please get support of our highly skilled technical team: garazlab.com.


Wordpress Plugins:
  1. Real-Time Health Data from Every Where:WP plugin to display real-time health data & increase sale by promoting user specific products according to health information: garazlab.com.
  2. Woocommerce Stock Notification Builder:Sends desktop, mobile & email notifications with full customization.Build your own product notification system with it: garazlab.com.

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide

Interfaces in haXe

An interface is a group of related methods with empty bodies. Yes, interfaces are abstract type. We declare interface with interface keyword. The syntax for interface is like the following:
Interface interface-name
{
function func-name([arg-name:type])[:return-type];
}
Here we create an interface interface-name with method func-name. It has an optional return-type and a parameter name.
We can’t instantiate an interface. All methods are by default declared as public.
See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide




List of my works:

Technical Support:

If you still face the technical problem, please get support of our highly skilled technical team: garazlab.com.


Wordpress Plugins:
  1. Real-Time Health Data from Every Where:WP plugin to display real-time health data & increase sale by promoting user specific products according to health information: garazlab.com.
  2. Woocommerce Stock Notification Builder:Sends desktop, mobile & email notifications with full customization.Build your own product notification system with it: garazlab.com.

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide

Super keyword in haXe

Using the super keyword, we can use the methods of parent class in a derived class while that method is being overridden in derived class. See the following example:
class child extends parent {
function care() : Int {
return super.care() + 1;
}
}
Here we override care() method of parent, but still we use the parent class method in it using super keyword. We can also call the constructor of parent class in our class using super:
class child extends parent {
function new(){
super();
}
}
Note that we do not use the constructor function name of parent class here, only used super(). It brings the properties of parent class to the derived class.
See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide




List of my works:

Technical Support:

If you still face the technical problem, please get support of our highly skilled technical team: garazlab.com.


Wordpress Plugins:
  1. Real-Time Health Data from Every Where:WP plugin to display real-time health data & increase sale by promoting user specific products according to health information: garazlab.com.
  2. Woocommerce Stock Notification Builder:Sends desktop, mobile & email notifications with full customization.Build your own product notification system with it: garazlab.com.

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide