Flux example Application with React JS

Flux example Application with React JS


Bookmark and Share

Flux is an application architecture used to build scalable and powerful JavaScript web application with React JS. React JS is a popular view library and we have already covered React JS. Flux is not a framework like Angular JS, Backbone etc., there are a lot of differences between these frameworks with Flux. Flux only supports unidirectional data flow, where Angular and Backbone supports bi-directional data flow. Unidirectional data flow prevents unexpected data flows, so it is more predictable.

Flux has three main parts.

  • Action
  • Dispatcher
  • Store
  • As their name indicates, Action is the result of some events, like JavaScript events, or callbacks for Ajax calls. Dispatcher, is a connector or link between Action and Store. The dispatcher is a central hub, from where everything passes through and we only need one dispatcher per application. Dispatcher handles all Actions and Stores.
    Store is very important in Flux architecture, we can write our business logics or Ajax calls to fetch data’s. I usually use it to store to get some initial data’s or to send or receive data via Ajax calls. The store uses event emitter similar to nodejs’s event emitter. We can define events in …

    Read More

    Debugging and how to ask questions.


    Bookmark and Share

    Answers… Answers that’s what you need whenever you are stuck in a problem, either technical problems or any other kind. Here, we will consider how to get answers for our technical problems. The kind of answers you get to your technical questions depends on the way you ask your questions. So,here we will see how to ask technical questions.

    By asking technical questions in the correct manner you will get answers from more experienced users. Those who reply to your questions take time out of their busy schedule,at times it is overwhelmed.So they filter accordingly as per their knowledge. Our responsibilty is to prepare questions in a manner that we be able to get the answers we are looking for, in short precisely and smartly.

    Before you ask

    These are some things that you should do before you go out with your questions, so that you may not goof up.

    1. Try finding your answer by searching the archieves of the forum.
    2. Find your answer by searching web.
    3. Read the manual.
    4. Go through FAQ.
    5. Inspect or experiment.
    6. Consult a skilled source.
    7. Explore the source code.

    While you ask your question, display the fact …

    Read More

    How to learn Ruby on Rails


    Bookmark and Share

    Well I have been hearing a lot from people in facebook, google groups and online forum wanting to learn Rails. Their question is simple “I want to learn Rails”, “How do I learn Ruby on Rails?”, “How do I become a Ruby on Rails programmer?”. Well the funny feeling I get while reading these questions is that, its the exact questions I posted in Google Groups, forums, etc when I wanted to start learning Rails and Ruby couple of years ago. So I thought of giving back to the community and to my company blog, by posting on how to learn rails, and answer a few questions every newbie always have.

    Q) How to learn Ruby on Rails?

    Well to get started, I would suggest this Rails Tutorial. Excellent tutorial, with detailed explanation. Build for people with little or no knowledge in Ruby. Further more it also teaches and introduces a newbie to Git and TDD.

    If you don’t like reading from the web, and prefer books then I suggest Agile Web Development With …

    Read More