SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru Jason__C's Avatar
    Join Date
    Oct 2009
    Racoon City
    1 Post(s)
    0 Thread(s)

    Smile Custom JavaScript Architecture Framework.

    Hey guys,

    I decided to bypass jQuery for the time being, and decided to make my own re-usable framework. The question I have is how would you create the "shell" for it, the foundation. Such as Method declarations, properties, event-handling and calls to other parts of the script. It's an out there question, but I want some incite on anyones thoughts to how they would do it. Again, this is very subjective, so I'm cool with any help.
    Chuck Norris is so tough,
    mosquitos ask for permission before they bite him

  2. #2
    SitePoint Wizard bronze trophy Jeff Mott's Avatar
    Join Date
    Jul 2009
    19 Post(s)
    1 Thread(s)
    This question doesn't have a straightforward answer. There are several good libraries out there -- not just jQuery, but also YUI, Closure, Dojo, ExtJS, and others -- and I don't think any of them have the same "shell".

    My advice is, before you start thinking about the underlying implementation, first start thinking about the API. Start writing code that uses your library as if it were already fully formed, because that's going to help you figure out how you want it to work.

    Once you've defined how you want it to work, then we can talk about how to implement that API.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts