Jump to: navigation, search

Difference between revisions of "VJET/ANVILS"

Line 33: Line 33:
 
===These ANVILs are part of VJET project===
 
===These ANVILs are part of VJET project===
  
# Dojo 1.6  
+
# Dojo 1.6 [[http://git.eclipse.org/c/vjet/org.eclipse.vjet.typelibs.git/tree/DojoTL git]]
 
# EcmaScript Ed. 5 api updates
 
# EcmaScript Ed. 5 api updates
 
# HTML 5 Canvas 2D API
 
# HTML 5 Canvas 2D API

Revision as of 14:03, 20 March 2013

Introducing VJET ANVILS

(Formerly known as VJET Type libraries)

Authoring - give you great code assist for the right javascript scope

Navigation - help you navigate the code base based on call hierarchy, references, etc.

Validation - provide semantic validation

Instruction - Helps with inline documentation

Libraries - Packaged as an Eclipse project just import and depend on.

Overview

VJET ANVILs provide a way to work with 3rd party Javascript libraries without requiring an Eclipse plugin because the ANVILS are described with javascript.

The idea behind the "ANVIL" is to create definitions which describe other JavaScript libraries. JavaScript is a huge area today thanks to Client and Server-side libraries such as jQuery and Node.js.

ANVIL "descriptions" are defined in a structured definition format called vjo.js. vjo.js is JavaScript itself (which is kind of nice - JavaScript describing other JavaScript).

We can think of the vjo.js as being similar to Java Interfaces and Class declarations. We can "describe" the coding contracts only but no their implementation. The implementation is always the real runtime library that would physically be included in your webpage like jquery (<script src="http://code.jquery.com/jquery-1.9.1.min.js";></script>) or server-side Node module being used via require(...).

The ANVIL is read in by the Eclipse IDE and provides the necessary information for it to provide authoring assistance and validations. Authoring assistance would be things like type completion and proposals which are concepts we generally enjoy with typed languages like Java.

Also, those definitions help VJET do validation on your code as well. For example your function takes a String and Number argument but someone passed in an Array or Date. In raw JavaScript this is just tough luck and bad things happen at runtime. With VJET, this scenario is caught and flagged as an error for the developer to correct.

JavaScript is a simple language on the surface and provides very limited types (Object, Function, Array, Date, Boolean, String, Number and RegExp) only. However, JavaScript can create very complex functions and types that benefit from more type support and that's where VJET comes into play.

Available VJET ANVILs

These ANVILs are part of VJET project

  1. Dojo 1.6 [git]
  2. EcmaScript Ed. 5 api updates
  3. HTML 5 Canvas 2D API
  4. jQuery 1.4
  5. jQuery Mobile 1.0 Alpha 4.1 (Requires JQuery ANVIL)
  6. JSON (plans to include in the built in ANVIL) - see bug [402813]
  7. Node.js 0.4

3rd party created commercial ANVILs

  1. 4.0.7 ExtJs - [Sencha]
  2. 4.1 ExtJs - [Sencha]
  3. 4.2 ExtJs - [Sencha]
  4. 2.1 Sencha Touch - [Sencha]
  5. 2.2 Sencha Touch - [Sencha]

Incubator VJET ANVILs

These ANVILs are part of VJET project

3rd party created/provided ANVILs

NodeJS 0.10 - Mark Palaima http://www.linkedin.com/in/markpalaima