Code Monkey home page Code Monkey logo

Comments (1)

addyosmani avatar addyosmani commented on August 19, 2024

Hey Dustin,

I completely agree that a Todo application on its own is insufficient to correctly illustrate how this architecture can be more efficient than others. Zakas used it the most on the Yahoo homepage and so I would argue that perhaps demonstrating it on a significantly scaled down 'homepage' with a few sample widgets (e.g weather) would be better.

In the past I have found myself going entirely too granular with Todo apps trying to make them fit into the architecture (I.e a Todo counter was a widget, the list was a widget etc). This is fine for a very basic way of showing the thing working, but anyone reviewing the architecture will be very likely to be building something non-trivial, where Todo app just doesn't cut it.

With that in mind perhaps we could do three widgets (weather, stock checker, something else). I'm using the word widget rather than module here as I think that's what each of these wrapped 'blocks' of functionality really are.I also am in agreement about AMD modules being the 'modules' in this architecture. Maybe we should have a wiki page in pace with a glossary of terms so others aren't confused too.

So then each AMD module within the Aura module includes the sandbox to get the functionality it needs like DOM manipulation, event handling, and AJAX. There is most likely a single entry point into that Aura module which, I think, would also be the one responsible for registering the Aura module with the core (mediator).

I agree with all of the above too.

I think we have a good opportunity with this project to define not just an example of how to implement this architecture but an entire layer that developers could drop into an a new project and use. Aura-core would probably evolve into this. One thing I'll probably be pushing for later is adding unit tests (which I'm more than happy to write up), but I'm excited to see what demo apps we can put together once everything is stable.

Please feel free to reach out at any time.
Addy

from aura.

Related Issues (20)

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.