File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Mastery: JavaScript vs jQuery Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Mastery: JavaScript vs jQuery" Watch "Mastery: JavaScript vs jQuery" New topic
Author

Mastery: JavaScript vs jQuery

Geff Chang
Greenhorn

Joined: May 03, 2012
Posts: 13
Hi Keith,

Which would you focus mastery on? JavaScript, or jQuery?
This is with the assumption that you only have basic background on JavaScript.
Keith Wood
Author
Ranch Hand

Joined: Aug 28, 2012
Posts: 38

Do you mean in the book or as a developer?


Author of the upcoming "Extending jQuery" book from Manning.
Vishal Shaw
Ranch Hand

Joined: Aug 09, 2012
Posts: 179
BTW, jquery uses javascript only. It's only a library of javascript


Programming is about thinking, NOT coding
Geff Chang
Greenhorn

Joined: May 03, 2012
Posts: 13
Keith Wood wrote:Do you mean in the book or as a developer?


As a developer.

I know jQuery is just a javascript framework.
But javascript in itself is complicated.
That is why we have jQuery to simplify javascript,
and extend it if necessary.

Knowing this much,
would you rather spend more time understanding javascript?
Or just forget about javascript, and specialize (or master) in jQuery?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Knowing just jQuery can get you only so far. jQuery can not do everything for you. You need to know JavaScript for those situations.

Eric
Geff Chang
Greenhorn

Joined: May 03, 2012
Posts: 13
Eric Pascarello wrote:Knowing just jQuery can get you only so far. jQuery can not do everything for you. You need to know JavaScript for those situations.

Eric


What would be an example that would not be possible with jQuery?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

Geff Chang wrote:
But javascript in itself is complicated.
That is why we have jQuery to simplify javascript,

Yes, it's true that jQuery makes doing things in the browser a lot simpler -- I can't imagine dealing with event handling or Ajax without jQuery for example -- but that does not mean that you can get away without knowing JavaScript. It's just like using Java libraries doesn't mean you can skip learning any Java.

Effective use of jQuery requires a good grasp of basic JavaScript, and even some advanced concepts such as functional programming, closures and function contexts. While you can get away without know much about those, your code will suffer for it. jQuery makes effective use of JavaScript as a functional language and not understanding how JavaScript works in this respect will severely hamper your code.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Keith Wood
Author
Ranch Hand

Joined: Aug 28, 2012
Posts: 38

You need a bit of both. As the others have said, jQuery is a JavaScript library and you still need to use JavaScript to implement basic functions and processes. Knowing more about jQuery's abilities would allow you to reduce the amount of code you write yourself by taking advantage of the functionality built into jQuery.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mastery: JavaScript vs jQuery