chaseman Posted April 18, 2011 Share Posted April 18, 2011 To all the JS supporters, this questions is not meant to provoke. I'm genuinely asking myself and trying to think of reasons to learn actual JS when there's jQuery.(?) I'm a web developer and recently I'm spending a lot of time participating in the booming market of template design. Today and yesterday I spent a lot of time learning jQuery and I have to say I grasped it fairly quickly. And I figured quickly that I basically can do anything with it what I always wanted to do, but always lacked the skills to do. I can pep up my websites with jQuery and make them real sleek and dynamic, it is a lot of fun to work with it. I imagined jQuery to be a bit more limited, but I figured the opposite is the case. Now I'm asking myself what would be reasons to learn real JS, maybe you can give me some examples I didn't think of? I would imagine that I would need actual JS for more technical tasks. The next language I wanted to learn was CURL, so I can combine it with my PHP skills. Quote Link to comment https://forums.phpfreaks.com/topic/234103-what-are-reasons-to-learn-actual-javascript-when-i-have-jquery/ Share on other sites More sharing options...
requinix Posted April 18, 2011 Share Posted April 18, 2011 I assume you're thinking about using JavaScript to manipulate the DOM and do other UI effects? As long as you and your employers don't mind you hefting around the jQuery suitcase everywhere you go, whatever. If you meant JavaScript in general then I'd be speechless. And cURL isn't a language. The only thing to learn are the various options an invocation can be configured with. Quote Link to comment https://forums.phpfreaks.com/topic/234103-what-are-reasons-to-learn-actual-javascript-when-i-have-jquery/#findComment-1203250 Share on other sites More sharing options...
Zane Posted April 18, 2011 Share Posted April 18, 2011 There isn't any real reason to learn actual JS unless you just don't have access to jquery. Then I could see the benefit of knowing JS. jQuery is a great framework.. awesome really. It has become so awesome that nearly everyone is using it nowadays as a JS substitute and in the past when that type of thing happens,.. you have a shiny new cult language. Much like how PHP started out.. as a simple framework. A way for someone to code lazily yet just as efficiently. If jQuery doesn't survive the years and stay where it's at in popularity then something else is bound to come along and "replace" JS again. Your question is essentially the same thing as asking if it's worth it to learn C. .. and the answer is, it won't hurt you if you do and it'll have it's benefits. There's really no cons to knowing a language. Quote Link to comment https://forums.phpfreaks.com/topic/234103-what-are-reasons-to-learn-actual-javascript-when-i-have-jquery/#findComment-1203254 Share on other sites More sharing options...
chaseman Posted April 18, 2011 Author Share Posted April 18, 2011 zanus, thank you a lot, your post describes perfectly the perspective I was coming from. As said I imagined jQuery to be much more limited, more like a simple add-on that you'd use for most common effects, but I figured quickly I can do anything with it that I always wanted to be able to do - and that only with a few lines of code (I was pretty amazed). And your analogies are making sense. requenix, I'm not really seeing from which perspective you're coming form. Did you take offense to my post? As said, it wasn't meant to provoke. Sorry about the cURL confusion, I'm only programming since a few month and I was simply fascinated by the thought of programming bots, that's why I wanted to get into it. Quote Link to comment https://forums.phpfreaks.com/topic/234103-what-are-reasons-to-learn-actual-javascript-when-i-have-jquery/#findComment-1203260 Share on other sites More sharing options...
chaseman Posted April 19, 2011 Author Share Posted April 19, 2011 nvm........... Quote Link to comment https://forums.phpfreaks.com/topic/234103-what-are-reasons-to-learn-actual-javascript-when-i-have-jquery/#findComment-1203272 Share on other sites More sharing options...
Pikachu2000 Posted April 19, 2011 Share Posted April 19, 2011 There's a difference between Curl and cURL. The wiki article you linked to is in reference to Curl. This is the one for cURL: http://en.wikipedia.org/wiki/CURL Quote Link to comment https://forums.phpfreaks.com/topic/234103-what-are-reasons-to-learn-actual-javascript-when-i-have-jquery/#findComment-1203273 Share on other sites More sharing options...
chaseman Posted April 19, 2011 Author Share Posted April 19, 2011 Thanks for embarrassing me, 6 min after I've edited my post. :-\ No, it's all good though, I've figured that out myself, that's why I edited my post. Quote Link to comment https://forums.phpfreaks.com/topic/234103-what-are-reasons-to-learn-actual-javascript-when-i-have-jquery/#findComment-1203295 Share on other sites More sharing options...
Adam Posted April 19, 2011 Share Posted April 19, 2011 Personally I'd say learn JavaScript. jQuery is obviously written in JavaScript, and knocking how the language works is always beneficial for better code. There's also aspects of JavaScript jQuery doesn't touch; such as strings, dates and numbers. These core objects, even in jQuery, are still accessed and manipulated in the same way. Little things like that, and of course knowing the constructs and abilities of the language, I think make it worthwhile. Quote Link to comment https://forums.phpfreaks.com/topic/234103-what-are-reasons-to-learn-actual-javascript-when-i-have-jquery/#findComment-1203370 Share on other sites More sharing options...
ignace Posted April 19, 2011 Share Posted April 19, 2011 I agree with MrAdam, even if it's just for doing something like this: Array.prototype.inArray = function(value) { // }; Array.prototype.forEach = function(callback) { // }; var a = ['a', 'b', 'c']; alert(a.inArray('c')); var d = a.forEach(function(k, v) { return k+v; }); Quote Link to comment https://forums.phpfreaks.com/topic/234103-what-are-reasons-to-learn-actual-javascript-when-i-have-jquery/#findComment-1203571 Share on other sites More sharing options...
Zane Posted April 19, 2011 Share Posted April 19, 2011 Yeah, there are a few functions in JS that a debugger just can't do without.. such as alert() & confirm() and there are a few others I'm sure, but in all sincerity, at this point in time, when jQuery is so dominant, JS is only great for debugging. I can't see myself entering jQuery commands to check variables in a debugger. Quote Link to comment https://forums.phpfreaks.com/topic/234103-what-are-reasons-to-learn-actual-javascript-when-i-have-jquery/#findComment-1203575 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.