Giter Club home page Giter Club logo

poochie's Introduction

Poochie

Build Status npm version Test Coverage

Poochie is one outrageous microframework.

Examples

[Poochie - TodoMVC] (https://github.com/garious/poochie-todomvc)

[More Examples] (https://github.com/garious/poochie-examples)

Why Poochie

I failed to find a web framework that allowed me to write a web app with the following properties:

  • The application description should be a single data-driven, declarative expression.
  • It should be possible to incrementally add dynamic behavior and maintain 100% line and branch coverage.
  • It should be possible to introduce components without affecting the existing behavior.

Poochie vs Mercury

Poochie and Mercury are similar in scope. Both provide libraries and programming techniques for defining testable, dynamic components in JavaScript. Some differences:

  • Poochie does not use virtual-dom
  • Poochie is compact, it's 1.8kb min.gzip.js, that's 5 times smaller than Mercury.
  • Poochie is lean, it's an afternoon's read, under 500 LoC.

Poochie chooses a slightly different abstraction than Mercury. Both implement the concept of observable variables that represent the application's dynamic behavior. But with Mercury, one keeps the app's state machine separate from the application. The application is then rendered from snapshots of that state, and then the DOM is diff'ed against the previous rendering to determine what changed. With Poochie, the virtual DOM is aware of observables. When the virtual DOM is rendered, the renderer detects the presence of observables, and sets up handlers that modify the DOM directly. No diffs needed.

Inspirations

  • Yoink
  • Mercury.js
  • Bacon.js
  • Fran
  • RxJS

Development

To download this package's dependencies:

$ npm install

To lint the code and run the unit tests:

$ npm test

poochie's People

Contributors

garious avatar

Watchers

 avatar

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.