Sunday, October 25, 2009

JSON vs XML

Following up on my previous post, I explored XML vs JSON for exposing Domino data.

In order to evaluate both the formats, i set out to build a small component to achieve the following: "Read all names/emails from Domino address book and implement AJAX to optimize name search".

I defined the critical success factors to be a) Performance b) Ease of use.

I am yet to complete the development of my test component, but based on initial findings I bet on JSON to be my preferred mode.

Here is why:

Performance: Given below is the time taken for exposing a domino address book (with over 140,000 entries) (Using Firebug 1.4)

In JSON format:


In XML format:


Clearly domino renders data in JSON format much quicker.

Ease of use: JSON data is as good as any other Javascript object. Hardly any learning curve for using JSON output.

Caveat:
Be aware of possibility of malicious cross-site scripting on JSON output. Need to be judicious before using javascript 'eval()' on JSON output.

JSONView:
For all JSON enthusiasts, JSONView (current version 0.4) is a nice firefox addon to render JSON outout on the browser itself.

Exposing Lotus domino data to external systems

As a part of project work, I have been exploring alternate ways of exposing data from a Lotus Domino system.

Since Lotus Domino release 4.5, Domino comes with an inbuilt web-server and can respond to http requests with notes data from .nsf file. However this approach tightly binds data with the presentation layer, hence is not really efficient.

Starting Domino release 5.0.2, it adopted XML as the standard data exchange format and provided services (i.e http://server/notes db path/view name?Readviewentries..) to expose domino data in XML format for external systems to read and and present as they like.

With Domino Release 7.0.2, domino extended its services to expose Lotus notes data in JSON format. Without adding any complexity, you can simply specify that output format as JSON from the Readviewentries service. i.e .. extending the example in the previous section, you can get JSON format by calling this url..
http://servername/notes db path/view name?Readviewentries&outputformat=JSON..

In future posts i would evaluate Domino's XML vs JSON services..

Wednesday, September 23, 2009

Enterprise Security 2.0

Traditional information security measures primarily involved securing enterprise network from outsiders using firewalls. However with growing focus on collaboration, evolution of web 2.0 (and cloud computing), we are seeing a paradigm shift in the way enterprises used to operate.

These days we work with people and organizations that are partners rather than employees. To be effective, they need access to data and intellectual property that the organization owns, but it must often be delivered to an environment that it does not control. Ultimately the only reliable security strategy is to protect the information itself, rather than the network and the IT infrastructure.

In this context I came across the following recommendations from the Jericho forum:



Extending these ideas, checkout Jericho forums' recommended 11 commandments on enterprise security.

In coming days, as we move more towards distributed computing over the cloud, I see the above recommendations gaining in relevance.

Monday, September 14, 2009

Google Fast Flip

Google launched Fast Flip - A web application that let's users discover and share news articles.

On first look, It greatly enhances the UX factor i.e I liked the feeling of being able to flip through pages before reading the details. You automatically get 'Most Viewed' and 'Recent' news items which helps you keep abreast of latest top stories.
Fast Flip also features a search engine and let users share content. Based on their reading choices, users will see suggestions for other articles they might find interesting.

Downside: At this point, Google isn't making any tools available for external developers to integrate Fast Flip with their Web sites and applications.

To me, It's unclear how this product is positioned vis-a-vis google news. Nonetheless, I won't complain as long as I have option to choose.

Sunday, August 30, 2009

Cloud Taxonomy

'Cloud', probably is the most over used word in the IT Industry in 2009. Big enterprises to small start-ups alike are rushing in slew of cloud based products to rake in first mover advantage. The usage of the term 'cloud' is getting muddled in the process.

I was pleasantly surprised to see a Forrester research paper on a 'Proposed Cloud Taxonomy'. Sharing the excerpts to clarify confusion around what 'Cloud' really means.

The article proposes to map all cloud flavors in the following two dimensions:
- Level of Sharing: Extent of sharing infrastructure services or business applications with other companies and tenants
- Business Value: Complexity of business process



As the diagram suggests, most of today's existing software products and services can be positioned along a level-of-sharing axis and a business value axis. The illustration uses a cloud symbol for services that will resonate as cloud services, while a squared box represents other concepts that should not be simply relabeled as cloud services.

Tuesday, August 18, 2009

Mobile application development - made easy!

After my fair share of procrastination, I finally succumbed to the charm of mobile application development. However, as the initial enthusiasm subsided, the reality struck..i.e where to start? Should I start learning Objective C?!@# malloc’s and calloc’s are certainly not my forte. Should I brush-up Java? or JavaME? will it work on iphone?

I chose the easier path out. I set-out to find cross platform tools, which can accelerate native mobile application development. To my surprise there are quite a few tools out there catering to wannabe mobile developers like me.

Here are my favorite picks:

Rhodes –

My Ruby developer friends will love me for sharing this (if not using it already). Developed by Rhomobile – free under GPL v3, easy pricing for commercial usage. The framework is referred to as "Ruby on Rails" of mobile development. It provides MVC framework (Model with – RhoSync & View and Control using Rhodes). Provides deep cross platform support, with application once developed can easily be deployed to iPhone, Blackberry, Windows Mobile, Symbian(! if still stays afloat after Nokia dumps it) and 'of-course' Android.

For iPhone fans: Support for native iPhone features is the best in the breed. Rhodes supports geolocation, camera, contacts, accelerometer, SMS, push, road map and audio / video capture.

One more interesting stuff, use of rhohub for distributed development and easy packaging of applications.

Phonegap –

By far the most widely used cross platform framework in the mobile world. Phonegap is developed by Nitobi – free under MIT license. Developing applications in Phonegap is as simple as it gets. All you need to know is Javascript and HTML. Provides cross platform support, portable to iPhone, Blackberry, and Android.

Provides decent support for native iPhone features such as geolocation, accelerometer and contacts.

Downside: you still may need to learn Objective C for executing server side action. Off-late Apple appstore has rejected some of the Phonegap developed apps under pretext of compatibility issues with future iPhone OS and the use of unsupported 3rd party APIs.

Titanium –

Developed by Appcelerator – free access to beta version – licensing is evolving. Easy to develop application using Javascript and HTML. Provides some sense of cross platform support, with option to port applications to iPhone and Android only.

Titanium provides decent support for native iPhone features such as geolocation, accelerometer, contacts and photos. Better integration with underlying apple libraries enables more standards compliant results.

Corona –

Developed by Ansca – free access to beta version – licensing is evolving. Uses Lua scripting language to develop applications. As of now, Corona enables application development for iPhone only.

Corona provides access to iphone file systems. Support for other native iPhone features such as camera and accelerometer is still under development.

Corona provides built in support for flash, hence has its advantages for development of two dimensional gaming applications.

As I make up my mind to take the plunge (leaning more towards Rhodes), please feel free to share your pick and experience on working with cross platform mobile development tools.