Giter VIP home page Giter VIP logo

pubsub-todo-app's Introduction

Todo App

Revisiting the Odin Project's Todo App, with an eye towards abstraction and separation. Specifically, I wanted to work from the idea that the entire app is a Collection, holding a number of "projects" which are, in themselves, also Collection things. Each of those projects collect Todo objects.

But Collection objects are also Observables. That is, we can subscribe to particular actions on them: "add", "remove" or "update". What does that do for us? We can tell the root Collection that we want to listen for its messages, and perform "side effect"-y manipulations outside of the data structure.

  • We can update the DOM, displaying the changes to the collection.
  • We can send the Collection to a backend service, synchronizing to another user.
  • We can store the Collection locally, using localStore or IndexDB.
  • We can add sound effects, when a delete or add has happened.

By making the collections observable, we can subscribe to them and cause certain behaviors using the data, outside of the data.

pubsub-todo-app's People

Contributors

parent-tobias avatar

Watchers

 avatar  avatar

Forkers

lofty-brambles

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.