Skip to main content

Posts

Showing posts from 2015

Managing State in React.js + Flux Applications.

Recently i have been trying out the new kid on the block, React.js and its unidirectional data/state management partner Flux. The concept of React.js is very simple. Your app is a combination of react components.  Every component has a state and properties. Whenever there is any change in the state or properties of the components the component is rerendered. Though in the above points i used the state and properties very casually. Usually its very important to get your head around when to use state and when to use properties.  You can refer to this article  https://github.com/uberVU/react-guide/blob/master/props-vs-state.md  to find out more about props vs state.  On the other hand Flux which calls itself an architectural pattern rather than a framework, is also straight forward. There is a dispatcher whose main goal is to dispatch the event to all the registered objects. There is a store , the store basically encapsulates the state of a component or group of components. The store reg...

Introducing ember-data

Model objects, defined by the ember-data library abstracts away the complexities involved with handling the communication with the server, serializing, as well as de-serializing of the response received from the server. In order to define your ember-data model object, you just need to extend the DS.Model object present in ember-data module as follows: Models form the core of any MVC design pattern as they describe the core business domain at hand. In Ember.js, every route has an associated model that describes the business domain that the route needs to work on. Almost all of the examples that we have seen so far operate on the static data that is returned from the model property of the routes. But most of the times the data that needs to be operated upon is not static and is fetched from a remote server. Traditionally we have used jQuery or plain JavaScript to fetch the data from the server, using AJAX calls and then using those returned JSON objects as models in our application. This...
Some music #kasol (at Evergreen Cafe,kasol)
moon dance cafe kasol #german #bakery #kasol (at moon dance cafe )

Broccoli - The Asset Pipeline in Ember.js

Ember CLI includes the fast asset pipeline broccoli (can be found at https://github. com/broccolijs/broccoli ). Broccoli draws heavy inspiration from the Rails asset pipeline. It runs on node.js and is independent of the backend platform you are working with. One of the most common ways to handle asset compilation and minifying is to use the Grunt task runner, or a similar tool. Let’s say you are working on an application that involves the compilation of CoffeeScript, Sass, and other similar assets. Now to make these assets available to our application, you will have to write a Grunt task that does the compilation. When you start the active development of your application, you will realize that running the Grunt task after making any changes to your CoffeeScript or Sass files iscumbersomeandtime-consuming.So,youstartusinggrunt watchinyour application to rebuild your entire application whenever you make any changes anywhere in your application. But very soon, when your application ...
After all these years and many countries that i have visited. I still feel that there is no place on earth that even comes close to Leh. The picture says it all. #leh

Ember.js Object Model

JavaScript is a multi paradigm dynamic language that supports all of object-oriented, procedural, and functional styles of writing code. This makes it one of the most powerful, as well as the most misunderstood language of all times. Often one aims to write code that is modular, extensible, and testable. But not everyone is able to write good quality code because it requires deep understanding of the language, design principles, as well as discipline to write code that consistently follows a particular school of thought. Ember.js framework helps in creating applications which are highly modular, extensible, and can be tested easily, and the Ember object model lies in the heart this framework.

User-Focused Security: End-to-End Encryption Plugin for Yahoo Mail

Link: User-Focused Security: End-to-End Encryption Plugin for Yahoo Mail yahoo : By Alex Stamos, Chief Information Security Office At Yahoo, we’re committed to protecting our users’ security. That’s why I’m so proud to share some updates on our latest security innovation: an end-to-end (e2e) encryption plugin for Yahoo Mail. Just a few years ago, e2e encryption was not…