Concurrency with Isolates in Dart PRO
Dart is a single threaded programming language. Each isolate is a unit of work. It has its own memory allocation. Sharing memory between isolates is not possible. Each isolate can pass over messages to the others. When an isolate receives a message it processes it in a way similar to events handling. import “dart:isolate”; var […]
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 […]