0.4.1 • Published 9 years ago

yaf v0.4.1

Weekly downloads
8
License
MIT
Repository
github
Last release
9 years ago

Yet Another Framework for "evolvable" web apps.

Provides structure and communication abstractions. It helps answer 2 questions:

  1. "How do I build UI components?"
  2. "How do I make those components communicate in a sane way?"

Nota bene!

The framework is intended to be "library-independent".

This project contains only basic abstractions and conventions.

You can find usable implementation of those abstractions built on top of AngularJS in yaf-angular project

The idea is based on organicjs abstractions. This is a playground for making those abstractions better by trying them on real use cases.

This is a Work-In-Progress implementation, API will change often and unpredictably.

Contents

  1. Why another framework?
  2. Main goals
  3. Scope of work
  4. Design decisions
  5. Delibirate known tradeoffs
  6. What's inside right now?
  7. Should I try using it?

Why another framework?

Angular provides general purpose abstractions and some useful tools.
But there are no official guidelines and conventions for app development.

This framework uses angular underneath, but provide some opinionated conventions and higher-level fine-grained abstractions.

Main goals

  1. Modular, reusable, replacable, self-contained web components (based on AMD/CommonJS).
  2. Fine-grained abstractions for "visible elements" with strict roles.
    element, composite, screen
  3. Limited number of powerfull dataflow abstractions.
    state, link, channel
  4. Portable and replacable web elements (make 'em once and use in all related projects).
  5. Logical "layered" project structure with easy navigation.
  6. Easier complexity and growth control.
  7. Explicit state and state relations with one-way explicit bindings.
  8. Interoperable with legacy angular code.

Scope of work

We are aiming to have a specification for structural and behavioral abstractions to build components.

Those abstractions should have these traits:

  1. Amorphous - Independent from language and preprocessors.
  2. Prepared - Be usable without build by default.
  3. Replaceable - Be granular enough to be thrown away easily
  4. Composable - Be usable in templates without much imperative scripting.
  5. Well-Defined - Be relatively simple and easy to reason about.

Design decisions

Delibirate known tradeoffs

What's inside right now?

There are only 6 key things you need to use.

Structural

These abstractions are "building blocks" for all visual things.

  • element
  • composite
  • screen

Behavioral

These abstractions help you to control the behaviour and data flow.

  • state
  • link
  • channel

Should I try using it?

You should give it a try if you are building an "evolvable" web app and have some room for experiments.

Here is a checklist to help you decide:

  • The app has non-trivial functionality (not a form-based CRUD).
  • The app will eventually grow and become more complex.
  • The app will be developed not only by you.
  • The feature set and requirements will constantly change.
  • You need to control the quality, retaining the constant development speed.
  • You will have some time to "reshuffle" the components once in a while.
  • There is a possibility to have the same type of the project with the same styles and behaviour in the future.

Have you checked 5 of those ticks? If yes, then we are on a single track.

0.4.1

9 years ago

0.4.0

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.1

9 years ago

0.1.0

9 years ago