I current use prototype library to handle ajax requests. I have been on stack overflow for a week or so, and have seen lot of jQuery questions. It seems like most of people choose to use that library to handle javascript part of the programming. Beside the ajax part, rest of my javascript part on my website is developed on my own written code.
I am wondering if it would be more useful to continue to write my own javascript code, or should I spend time learning JQuery library and use its functions to save myself time? I am thinking that by writing my own code, it would make me more aware of the cross browser issues, and increase my understanding of javascript. On the other hand, if I just use the library and not deal with those issues, then there is no point in learning about them. Just kinda confuse and wanted to hear others opinions. What do others choose to do and why? How heavily do you rely on a library for JavaScript? How much more time would you need to spend, if you can make hypothetical guess, if you did not had the option to use the library?
I don’t do any commercial work. I only work on my personal websites. (My functions collection, if it is helpful somehow in answering my question: http://hsbsitez.com/js/hsb_functions.js )
Why would you want to reinvent the wheel? Well if you don’t know how the wheel works, you can’t do much about fixing your wheel when it breaks, or making better wheels entirely – jQuery is an extremely useful tool, but don’t ever let it be a crutch, and raw JS is the only way to learn.(1)
fwiw, I believe your personal website is the ideal opportunity to be learning on.
oh, and (stupidly blatantly obviously) this completely depends on the domain.
For a small localised problem, loading up a library is an unnecessarily expensive thing to be doing. For a large generalised set of problems the only efficient way to solve that, let alone the only sensible way to manage it, is to use a library of code – yours if it exists / is good enough / is well understood, jQuery probably being the best third-party library on the grounds of familiarity for other/future developers.
1. this is actually very debatable but my gut says JS -> jQuery will make obvious sense, but the reverse won’t.