Monday, December 29, 2014

Basic Angular Application–Step by Step




Angular JS is a JavaScript framework from Google which helps to build structured, testable Single Page Applications(SPA).
Application Requirement
  1. Add a <script> tag which point to angular.js
  2. Add an ng-app attribute(it is a directive  and ng is short form of angular)
Step by Step
To build a basic Angular JS application, follow the steps shown below
  1. Create a html file or a project with a html file in your favorite IDE. I am using WebStorm 9.0.2 trial version and named the project as BasicAngular as shown below.

    image
  2. Add angular.js framework Angular JS framework can be pointing to a local copy of the angular.js file or from a CDN (content delivery network). The screenshot below shows the Google CDN URL.
    image
  3. Add ng-app attribute Include ng-app directive to auto bootstrap the angular application.
    image
  4. Run or open in a browser The expression 12 * 34 is included inside {{ }} will be evaluated and resulting html will be inserted into the div tag as shown below
    image
Thanks,
Bimal

Wednesday, October 22, 2014

Java Frameworks for RESTful Web Services



API Provider
Cuubez

CXF Apache
Dropwizard Yammer
Jersey Oracle
RESTEasy JBoss
Restlet

Tuscany Apache
Wink Apache
Restfulie Caelum

Tuesday, August 26, 2014

Java 7 Programming Language features

Java 7 programming language includes a few new language features which includes
  • Binary Literals
  • Strings in Switch Statements
  • Automatic resource management with try-with-resources Statement
  • Catching Multiple Exception Types and Re-throwing Exceptions with Improved Type Checking
  • Underscores in Numeric Literals
  • Type Inference for Generic Instance Creation or Diamond Operator

Saturday, March 15, 2014

JavaScript Promise


Introduction
A Promise is an object that represents a one-time event, typically the outcome of an async task. Basically it starts with a pending state and eventually change to resolve or reject.
It provides an unified or standard way to handle async tasks and it decouples the logic of processing the result from the object which invokes the task.
JS Promise libraries
  • Promise
  • Q
  • When
  • rsvp.js
  • Vow
Thanks,
Bimal

Tuesday, March 11, 2014

JavaScript MVC Frameworks

JavaScript MVC Frameworks
  • Agility.js
  • AngularJS
  • Backbone.js
  • CanJS
  • Ember.js
  • Epitome
  • ExtJS
  • Kendo UI
  • Knockout
  • Maria
  • PlastronJS
  • rAppid.js
  • Sammy.js
  • Serenade.js
  • soma.js
  • Spine.js
  • SproutCore
  • Stapes.js
Thanks,
Bimal