Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Mastery: JavaScript vs jQuery

 
Ranch Hand
Posts: 53
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Keith,

Which would you focus mastery on? JavaScript, or jQuery?
This is with the assumption that you only have basic background on JavaScript.
 
Author
Posts: 38
jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean in the book or as a developer?
 
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BTW, jquery uses javascript only. It's only a library of javascript
 
Geff Chang
Ranch Hand
Posts: 53
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 53
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?
 
Marshal
Posts: 67293
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
Keith Wood
Author
Posts: 38
jQuery
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
This cake looks terrible, but it tastes great! Now take a bite out of this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!