Jquery, prototype, ... vs javascript

Discussion in 'jQuery' started by thosecars82, May 22, 2008.

  1. #1
    Hello there
    I wanted to ask you whether it is worth or not using tools such as jquery or prototype comparing them to javascript.

    What do you suggest? Using those libraries or rely just on javascript?

    I knew javascript but I have got to know recently these libraries which seem to reduce the amount of code. Therefore, I do not know much about this issue. Nonetheless, if I have to give it a try, I might think that using just java script gives me more control than using those libraries. On the other hand, those libraries such as jquery or prototype might speed up the development.
    Please, I would appreciate your suggestions about purposes and pros and cons of using either libraries or only javascript.

    Thanks in advance
     
    thosecars82, May 22, 2008 IP
  2. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I prefer not to use libraries when writing code, however it is up to the devloper really.
     
    MMJ, May 23, 2008 IP
  3. websiteideas

    websiteideas Well-Known Member

    Messages:
    1,406
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    130
    #3
    Using jQuery, I can write so much more code to do so much more in a short amount of time. Yes, it requires a little bit of extra source code to download everywhere you need it, but the unless you're worried about dial-up users, this isn't really an issue. The code is very clean and doesn't get mixed up with the HTML like it would otherwise without jQuery. It's also much easier to read and understand what is happening and therefore easier for someone else to modify at a later time.
     
    websiteideas, May 24, 2008 IP
  4. zerxer

    zerxer Peon

    Messages:
    368
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I would also highly recommend you try out jQuery. You will be so glad that you did. I've never used Prototype but I've heard jQuery is better anyways and lots of Prototype users have switched over.

    Comparing them to regular JavaScript? Oh.. it's DEFINITELY worth it. It's much cleaner to code for, cleaner to read, almost everything works perfect cross-browser which is a huge plus when it comes to client-side scripting, do a lot of powerful stuff very quickly with just a small line of code.
     
    zerxer, May 24, 2008 IP