Skip to main content

Home/ Web2.0/ Group items tagged dojo

Rss Feed Group items tagged

Hendy Irawan

JDojo < Main < TWiki - 0 views

  •  
    The idea of JDojo is to bring JavaScript and Dojo to Java. To achieve this, JDojo provides Java stubs for existing Dojo and JavaScript types a compiler participant to the Eclipse Java compiler that emits JavaScript files for each Java file compiled The programmer does not program against the Java JDK classes, but against Dojo and JavaScript stubs that JDojo provides. The compiler participant only allows a subset of the existing JDK classes and also limits the Java language constructs that can be used. To support important features that exist in JavaScript but are not available in Java, JDojo provides Java annotations that the programmer can use to instruct the compiler how to translate code. While the compiler still produces class files, what is of interest is the JavaScript code. Only the generated JavaScript code is executable, the Java code is not. Contrary to Java-JavaScript cross compilers, JDojo does not add anything on top of the JavaScript and Dojo types. JDojo programmers program against the DOM, Dojo widget and other existing Dojo classes the same way as they would do it when programming JavaScript. Therefore, the Java code a JDojo programmer writes looks very similar to the JavaScript code he would have written. However, the programmer now can take advantage of a typed programming environment and benefit from the Eclipse Java Tooling. The translator produces JavaScript that looks as similar as possible to the Java code (without the types), and matches what a JavaScript programmer would have written. This is important when executing and debugging the generated JavaScript; it is still easy to understand the JavaScript code and map a bug back to the Java code. JDojo also fits nicely in the existing Jazz web bundles. JDojo code is placed in a new Java source folder, while the generated JavaScript is inserted in 'resources' folder that also holds existing JavaScript code. To use existing JavaScript code in JDojo, 'Stub' classes can be added, containing only th
Hendy Irawan

Dojo Mobile - The Dojo Toolkit - 0 views

  •  
    " Dojo Mobile is a world class HTML5 mobile JavaScript framework that enables rapid development of mobile web applications with a native look and feel on modern webkit-enabled mobile devices such as iPhone, iPod Touch, iPad, Android and RIM smartphones and tablets. Dojo mobile is completely free with no-hassle liberal licensing under either the NewBSD and AFL open source licenses. "
Frederik Van Zande

Ajaxian » Announcing AJAX Libraries API: Speed up your Ajax apps with Google'... - 0 views

  •  
    I just got to announce the Google AJAX Libraries API which exists to make Ajax applications that use popular frameworks such as Prototype, Script.aculo.us, jQuery, Dojo, and MooTools faster and easier for developers.
Hendy Irawan

YUI Compressor - 0 views

  •  
    According to Yahoo!'s Exceptional Performance Team, 40% to 60% of Yahoo!'s users have an empty cache experience and about 20% of all page views are done with an empty cache (see this article by Tenni Theurer on the YUIBlog for more information on browser cache usage). This fact outlines the importance of keeping web pages as lightweight as possible. Improving the engineering design of a page or a web application usually yields the biggest savings and that should always be a primary strategy. With the right design in place, there are many secondary strategies for improving performance such as minification of the code, HTTP compression, using CSS sprites, etc. In terms of code minification, the most widely used tools to minify JavaScript code are Douglas Crockford's JSMIN, the Dojo compressor and Dean Edwards' Packer. Each of these tools, however, has drawbacks. JSMIN, for example, does not yield optimal savings (due to its simple algorithm, it must leave many line feed characters in the code in order not to introduce any new bugs). The goal of JavaScript and CSS minification is always to preserve the operational qualities of the code while reducing its overall byte footprint (both in raw terms and after gzipping, as most JavaScript and CSS served from production web servers is gzipped as part of the HTTP protocol). The YUI Compressor is JavaScript minifier designed to be 100% safe and yield a higher compression ratio than most other tools. Tests on the YUI Library have shown savings of over 20% compared to JSMin (becoming 10% after HTTP compression). Starting with version 2.0, the YUI Compressor is also able to compress CSS files by using a port of Isaac Schlueter's regular-expression-based CSS minifier.
1 - 4 of 4
Showing 20 items per page