The Register® — Biting the hand that feeds IT

Feeds

Google unleashes internal JavaScript tools

Channel the power of Gmail

Agentless Backup is Not a Myth

Google's critical mass online, combined with recent years' Web 2.0 fever, have helped consolidate 14-year-old JavaScript in the field of web development.

Now Google has released some of the tools it used to build Gmail, Google Docs, and Google Maps that helped in that process of establishing JavaScript as a central player in the line-up that is AJAX.

The giant Thursday released a compiler, library, and set of templates it calls Closure Tools. The tools have been released under an open-source license, although Google did not say what license.

Google did say, though, that the Closure Tools have grown to be a key part of the JavaScript infrastructure behind its web applications.

"We're particularly excited (and humbled) to open source them to encourage and support web development outside Google," Google said on its blog. "We want to hear what you think, but more importantly, we want to see what you make."

The tools are designed to make the task of building and maintaining the notoriously complex JavaScript faster and more simply.

This is Google's second such offering, following development and maintenance of JavaScript in different browsers with Google Web Toolkit (GWT). The difference is that GWT lets you build JavaScript applications in Java while Closure Tools are for JavaScript.

The Compiler removes dead code and rewrites and minimizes what's left to run fast on browsers' JavaScript engines. "The compiler also checks syntax, variable references, and types, and warns about other common JavaScript pitfalls," Google said. You can compile code through a text box or a RESTful API.

The Closure Library provides something akin to a standard JavaScript library - generally lacking in JavaScript - to build large, complex web applications. The library is server-agnostic and designed to be used with the Closure Compiler. Google said the library: "Provides clean utilities for common tasks so that you spend your time writing your app rather than writing utilities and browser abstractions."

Closure Templates can be used in JavaScript or Java for the client or server and have been precompiled to produce what Google called "efficient" JavaScript. The Closure Templates use a simple syntax that Google said is "natural for programmers." ®

Regcast training : Hyper-V 3.0, VM high availability and disaster recovery

Latest Comments

Re: Not sure what all the fuss is about

So, what, reinvent the wheel with your own bloat just to fulfil a simple need? Sure, let's all start from scratch, why would anyone need to use a programming library?

0
0
Anonymous Coward

Not sure what all the fuss is about

JavaScript is perhaps one of the more intuitive programming languages, it is not that complicated.

Another layer of abstraction is just not needed, it is so easy to build your own abstraction to fit the task at hand then bother to rely on some form of pseudo generalised abstraction.

JavaScript libraries or toolkits just lead to bloat, instead you should create your own toolkit for the application if it warrants it.

0
0

@Jon 66

I have no opposition to the library, if it is done properly (what's good for Google generally isn't so good for smaller players), but I do object to press-releases that claim to be the best thing since sliced bread AND first to market, when they are neither.

0
0

More from The Register

Bjarne Again: Hallelujah for C++
Plus: Now officially OK to admit you never used STL algorithms
Interwebs taunt Sir Jony over Apple eye candy makeover
Hey Ive, Ive... add more unicorns, willya?
SCO vs. IBM battle resumes over ownership of Unix
Zombie lawsuit back and wants to suck the brains out of Linux
Apple: iOS7 dayglo Barbie makeover is UNFINISHED - report
Plus: You don't like the icons? Blame marketing
Red Hat to ditch MySQL for MariaDB in RHEL 7
So long, Oracle! Don't let the door hit you on the way out
Shy? Socially inadequate? Fiddling with your phone could help
App 'tells the brutal truth' about social inadequates' chatup lines
Java EE 7 melds HTML5 with enterprise apps
New release arrives with GlassFish, NetBeans support
 breaking news
'Office Facebook' firm Tibbr wants you to PAY for mobe-meetings app
Great idea. Punters won't cough for it though
 breaking news
The only Waze is Google: Ad giant tipped to gobble map app 'for $1.3bn'
Pac-Man-satnav-ish upstart in bidding war with Apple, Facebook
 breaking news
PM Cameron calls for modern, programmable computers! (We think)
IT education musings to G8 chiefs to mystify IT industry