0

I want to build my own Javascript library for this I need to master in OOP concepts to apply in Javascript. Please suggest me a reference which gives more examples with explanation.

Thank you in advance.
Shishir Kumar M.

teenu
  • 684
  • 2
  • 8
  • 24
  • http://stackoverflow.com/questions/1595611/how-to-properly-create-a-custom-object-in-javascript#1598077 – zerkms Jul 13 '12 at 04:41
  • Study some existing libraries that have the style you are after. jQuery, YUI, prototype are three examples that come to mind. Write some code with each. Step through several function calls into the library and watch how they work. Study the source code. IMO, that's the most powerful way to really learn. If you don't consider yourself a pretty talented JS programmer, then when you have your first interface design, get some talented JS programmers to review your API and give you comments on it. People who have consumed many APIs will know the most about what a good API should look like. – jfriend00 Jul 13 '12 at 04:43
  • @jfriend00: I almost agree with your long comment, with one exception: I think it's not possible to get the idea of proper OOP by only reading another sources. It is still required to read books about architect (which are in most cases language-independent) – zerkms Jul 13 '12 at 04:48
  • @zerkms - agreed. I assumed the OP knew generic OOP concepts already, but perhaps not in JS. – jfriend00 Jul 13 '12 at 04:51
  • @jfriend00 and zerkms thanks for the response. So any kind of reference to start up with for Architecture of OOP and DOM concepts ? – teenu Jul 13 '12 at 05:02
  • This is the link for the reference I found. (http://www.4shared.com/get/A5xM8NY0/javascript_-_the_definitive_gu.html). Anyone interested can use this link. – teenu Jul 13 '12 at 05:20

1 Answers1

1

Pick up some books on Javascript programming. I highly recommend O'Rielly's Javascript The Definitive Guide by David Flanagan or one of O'Rielly's many other books on Javascript. I personally learned a great deal from them.

Decker W Brower
  • 931
  • 6
  • 16