Posts tagged ‘javascript’

April 14, 2011

Quality-of-Life in the Chrome O/S Cloud

Google Web Toolkit (“GWT”) is a productivity tool for developers. It is a

development toolkit for building and optimizing complex browser-based applications. GWT is used by many products at Google, including Google AdWords and Orkut. It’s open source, completely free, and used by thousands of developers [worldwide].

What programming language would be the most accessible for Google Chrome O/S apps development?

These are the existing constraints:

  1. Android apps are coded in Java.
  2. Chrome browser apps are JavaScript.
  3. A Java programmer can use a web toolkit to “translate” Java into JavaScript.

However, it will be more difficult to go in the other direction. That is, a PHP programmer can create JavaScript apps for Chrome browser. But Android apps require knowledge of Java. This is the reverse of item 3 (above), and is much more challenging.
Perhaps there is a unified language for both scripting as well as programming the core functionality of the app?

Google Web Toolkit

GWT Logo

Google Web Toolkit does that!

GWT certainly lets you write Java apps, then compile them into JavaScript. And it might get even better!

How? With a consolidated toolkit, based on GWT. Such a consolidated toolkit could be used to write an Android app that also works on Chrome O/S as a web app, without the need for coding in Java, only in JavaScript

January 17, 2011

Google Buzz for users, web sites and developers

Logo by Google

Google Buzz Logo and Button

Help people share stuff from your website using Google Buzz! Google Buzz buttons are the easiest way to allow people to share content from your site using Google Buzz.

Post to Google Buzz

Configure the Buzz widget for your website or blog. Choose one of three different Google Buzz button styles. Select your preferred language.

The Google Buzz widget is only offered in a JavaScript version.  Google does not offer an HTML-only Buzz button. This is both inconvenient and puzzling. Why?

Many web sites and digital publishing platforms do not allow JavaScript due to security concerns. In fact, WordPress does not allow JavaScript on WordPress.com hosted blogs. The Google-owned Blogger blog product does allow limited use of JavaScript.

Yet Google Sites, the replacement for Google Groups, does not allow JavaScript. As a result, Google Sites users cannot include the Google Buzz widget on a Google Site!

Follow on Google Buzz

Allow users to follow you on Google Buzz without needing to leave your website. Promote your own Google Buzz account with the follow on Google Buzz widget and button for your website.

The Google Buzz API lets you syndicate Google Buzz posts, connect sites to Buzz, and more.  You do not need pre-approval to use the Google Buzz API or Google Buzz buttons or to promote the API functionality on your site using the provided buttons.

Google Buzz Branding Guidelines

Google has specific branding requirements that must be observed if developing an application using the Google Buzz API:

  • Give your application or website a unique name with unique branding and logos.
  • Include a disclaimer that your site is not affiliated with, sponsored by, or endorsed by Google Inc.
  • Do not use the Google Buzz logo or buttons as the most prominent element in the logo or icon for your application, nor as the most prominent element on your web page.
  • Do not include “Google Buzz” in the name of your application, domain name, website title or name.
  • Do not use the Google Buzz logo or buttons in a way that implies sponsorship, affiliation, or endorsement by Google.
  • Do not display the Google Buzz logo on any web site that has or displays adult content, promotes gambling, promotes violence, contains hate speech, involves the sale of tobacco or alcohol to persons under twenty-one years of age, violates other applicable laws or regulations or is otherwise objectionable.
January 15, 2011

Client Libraries for Google Data APIs

Google writes and supports client libraries for developers. This makes it easier to write applications using Google product data as well as accessing the corresponding Google product API’s.

Google Data Protocol Provides Client Libraries

Google Data client libraries are available for these languages:

  • Java
  • JavaScript
  • .NET
  • PHP*
  • Python
  • Objective-C

*PHP client library is distributed as part of Zend, not as a Google Code Project.

All client libraries are hosted on code.google.com (Google Code) other than PHP. Separate documentation is posted for each library. You can view the open-source code and browse through any new feature requests. Read articles about how other developers have used client libraries.  Each client library has its own FAQ section. File bug reports, if you find any! Google continues to actively support the Client Libraries, including bug fixes.

There is a single external client library, neither written nor supported by Google, the Force.com Toolkit for Google Data API’s. It is an Apex client library for Salesforce.com developers.

More details about Data API’s and client libraries

Google introduced many new products recently, both regular releases and Labs. Many have API’s. I counted twenty listings in the most recent official Google Data API Directory.

Not surprisingly, Google retains parity with its other products by Blogger coverage of the client libraries. The Google Apps Developer blog includes Data Protocol related posts.

Why is a Client Library helpful?

According to Google Data Protocol,

the library provides tools and an abstraction layer, letting you construct queries and use response data without having to create HTTP requests or process HTTP responses by hand.”

Each client library offers classes corresponding to elements and data types used by the API.

JavaScript Client Library

Google Data Protocol offers particularly detailed documentation, including code examples for common use cases, for the JavaScript Client Library. The most current release is version 2.0. This should be particularly helpful for Google Maps API users.

What are ETags?

Make sure to have a look at usage suggestions for ETags. ETags are identifiers that help specify entry version numbers, and are helpful for chronology and avoiding overwrites,  They also facilitate conditional retrieval and updates. Only services running Google Data Protocol version 2.0 support ETags.

Comprehensive documentation for the JavaScript client library API reference is now available in JSdoc format.

Follow

Get every new post delivered to your Inbox.

Join 527 other followers