The Android Search Framework PRO
The android platform provides us with a search framework that helps us implementing search mechanism in our application. We can allow the user to enter the searched term either through a search dialogue shown on top of the screen or through a search view widget. When developing an application that includes a searching mechanism we […]
Routing in AngularJS PRO
AngularJS allows us to develop code running on the client that supports routing in a way similar to code running on the server. Using AngularJS support for routing the development of a one page web application becomes much simpler. The following code sample include a simple HTML file that refers a JavaScript file, where the […]
Address Book Code Sample in AngularJS PRO
AngularJS supports data binding. The view is updated whenever the model changes and vice versa. Thanks to AngularJS support for data binding we can avoid writing code in JavaScript that manipulates the DOM. The behavior behind the DOM elements is modeled into controllers. AngularJS allows us to express this behavior in a clean readable form […]
Closure in PHP PRO
Closure is a function or a reference for a function together with a table that includes references for each one of the non local variables that exist within the outer scope of the closure. Unlike a plain function pointer the closure can use those non local variables that belong to its outer scope even when […]
Define Static Members using MooTools PRO
Inheritance using MooTools PRO
Define Constructor When Using MooTools PRO
Define Simple Class using MooTools PRO
Type Bounds in Scala PRO
When we define a function or a class and we choose to use generics we can set limits on the unknown type: S <: T – means that S is a sub type of T S >: T – means that S is a super type of T It is also possible to mix between […]
Accessing The Query String in Node.js PRO
In order to access the query string we should first require the url module. Doing so we will be able to invoke the method parse on the url module passing over req.url and true. The method parse returns an object that its properties are the parameters the query string includes. var http = require(‘http’); var […]