Essentials of Javascript - Cultural View

Essentials of Javascript - Cultural View Essentials of Javascript - Cultural View

culturalview.com
from culturalview.com More from this publisher
14.07.2013 Views

Minification (programming) 119 Compressing HTTP proxy Ziproxy, a forwarding, non-caching, compressing HTTP proxy targeted for traffic optimization, supports functionalities of code compression by means of optimization of code, named HTMLopt, CSSopt and JSopt (HTML/CSS/JS) which are analogous with Minification. Ziproxy works by recompressing pictures, gzipping text and data optimization. See also • Copy protection • Reverse engineering • Obfuscated code References [1] http://www.crockford.com/javascript/jsmin.html [2] http://dean.edwards.name/packer/ [3] Packer version 3.0 feature list (http://dean.edwards.name/weblog/2007/04/packer3/) [4] http://code.google.com/closure/compiler/docs/gettingstarted_ui.html [5] http://developer.yahoo.com/yui/compressor/ [6] http://prettydiff.com/ [7] http://js-optimizer.sourceforge.net [8] http://sf.net/projects/packtag [9] http://www.galan.de/projects/packtag [10] https://jawr.dev.java.net [11] http://code.google.com/p/minify/ [12] http://dojotoolkit.org/docs/shrinksafe [13] http://razorsharpcode.blogspot.com/2010/02/lightweight-javascript-and-css.html

Objective-J 120 Objective-J Paradigm Multi-paradigm: reflective, object oriented, functional, imperative, scripting Appeared in 2008 Developer 280 North, Inc. Typing discipline dynamic, weak, duck Influenced by Objective-C, JavaScript License LGPL Website http://cappuccino.org/ Objective-J is a programming language developed as part of the Cappuccino web development framework. Its syntax is nearly identical to the Objective-C syntax and it shares with JavaScript the same relationship that Objective-C has with the C programming language: that of being a strict, but small, superset; adding traditional inheritance and Smalltalk/Objective-C style dynamic dispatch. Pure JavaScript, being a prototype-based language, already has a notion of object orientation and inheritance, but Objective-J adds the use of class-based programming to JavaScript. Programs written in Objective-J need to be preprocessed before being run by a web browser's JavaScript virtual machine. This step can occur in the web browser at runtime or by a compiler which translates Objective-J programs into pure JavaScript code. The Objective-J compiler is written in JavaScript; consequently, deploying Objective-J programs does not require a web browser plug-in. Application The first widely known use of Objective-J was in the Cappuccino-based web application 280 Slides. Even though Objective-J can be used (and has been designed) independently from the Cappuccino framework, Objective-J has primarily been invented to support web development in Cappuccino. Syntax Objective-J is a superset of JavaScript, which implies that any valid JavaScript code is also valid Objective-J code. The following example shows the definition in Objective-J of a class named Address; this class extends the root object CPObject, which plays a role similar to the Objective-C's NSObject. This example differs from traditional Objective-C in that the root object reflects the underlying Cappuccino framework as opposed to Cocoa, Objective-J does not use pointers and, as such, type definitions do not contain asterisk characters (in Objective-C, all objects must be dynamically allocated). In addition, instance variable definitions are never done in the @implementation file. @implementation Address : CPObject { } CPString name; CPString city; - (id)initWithName:(CPString)aName city:(CPString)aCity { self = [super init];

Minification (programming) 119<br />

Compressing HTTP proxy<br />

Ziproxy, a forwarding, non-caching, compressing HTTP proxy targeted for traffic optimization, supports<br />

functionalities <strong>of</strong> code compression by means <strong>of</strong> optimization <strong>of</strong> code, named HTMLopt, CSSopt and JSopt<br />

(HTML/CSS/JS) which are analogous with Minification. Ziproxy works by recompressing pictures, gzipping text<br />

and data optimization.<br />

See also<br />

• Copy protection<br />

• Reverse engineering<br />

• Obfuscated code<br />

References<br />

[1] http://www.crockford.com/javascript/jsmin.html<br />

[2] http://dean.edwards.name/packer/<br />

[3] Packer version 3.0 feature list (http://dean.edwards.name/weblog/2007/04/packer3/)<br />

[4] http://code.google.com/closure/compiler/docs/gettingstarted_ui.html<br />

[5] http://developer.yahoo.com/yui/compressor/<br />

[6] http://prettydiff.com/<br />

[7] http://js-optimizer.sourceforge.net<br />

[8] http://sf.net/projects/packtag<br />

[9] http://www.galan.de/projects/packtag<br />

[10] https://jawr.dev.java.net<br />

[11] http://code.google.com/p/minify/<br />

[12] http://dojotoolkit.org/docs/shrinksafe<br />

[13] http://razorsharpcode.blogspot.com/2010/02/lightweight-javascript-and-css.html

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!