aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Learning JavaScript along with Ajax and JQuery Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Learning JavaScript along with Ajax and JQuery" Watch "Learning JavaScript along with Ajax and JQuery" New topic
Author

Learning JavaScript along with Ajax and JQuery

Gabe Yoshida
Greenhorn

Joined: Jul 15, 2009
Posts: 8
Can you do all at the same time or is it better to learn JavaScript first and then the others?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

The nice thing about jQuery is that while it hides all the nasty boilerplate code you would normally have to write when dealing with multiple browsers, manipulating the DOM, etc it doesn't completely shield you from JavaScript the language. You still have to deal with functions, variables, and the like. So I think you can learn JavaScript and use jQuery at the same time. In fact, I've learned more about JavaScript while using jQuery. Remember that jQuery is just JavaScript using some fancy functions and closures.


GenRocket - Experts at Building Test Data
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

I'll even go one step further and equate JavaScript->jQuery the same way I would equate Assembler->C. At some point, we really need to stop wondering how $('#elementId') works and just go with it. ;)
Gabe Yoshida
Greenhorn

Joined: Jul 15, 2009
Posts: 8
I was hoping that was the case. Looking forward to diving in. Thanks!
Karl Krasnowsky
Ranch Hand

Joined: Jan 16, 2009
Posts: 97
Gregg Bolinger wrote:I'll even go one step further and equate JavaScript->jQuery the same way I would equate Assembler->C. At some point, we really need to stop wondering how $('#elementId') works and just go with it. ;)


Sorry, there's no way I'll accept the javascript = assembler analogy
I know you're using this to make a point, but I can actually look at javascript and tell within a glance or two what it's doing, not so much assembler, well at least not any more. In fact I would argue that in this case jQuery is the less intuitive of the two languages. But I do agree that it's a very cool framework once you get used to it.

~Karl


[SCJP 6]
[SCBCD in process]
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

I didn't mean it from a syntactical point of view. I meant it from a low level vs high level language perspective. The fact that 100 lines of Assembler can be done in 5 lines of C, so can 100 lines of JavaScript be done in 5 lines of jQuery. Give or take. ;)
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Karl Krasnowsky wrote:
I know you're using this to make a point, but I can actually look at javascript and tell within a glance or two what it's doing


I know plenty of people who have no clue what JavaScript does with a long stare and not a glance.

Now this:

looks like a mess! lol


Gregg is probably talking about having to write less to get the same thing done. [Yep he just said that!]

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Learning JavaScript along with Ajax and JQuery