Results 1 to 2 of 2
Mar 24, 2012, 04:52 #1
- Join Date
- Oct 2009
- Racoon City
- 1 Post(s)
- 0 Thread(s)
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
Mar 24, 2012, 15:18 #2
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.