Learning/applying jQuery before JavaScript [closed] - javascript

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
NOTE: I am not in any way asking whether or not I should learn JavaScript before jQuery. I understand that jQuery is simply a framework for JavaScript and as such JavaScript should be learned first.
I currently know HTML and CSS and I'm looking to expand into JavaScript. I have used several resources from tuts+ to treehouse to learn HTML and CSS, but recently I stumbled across a website called code school that I really enjoy using.
When I go to their JavaScript section, it appears they skip JavaScript all together and jump right into jQuery. My question is - should I learn JavaScript on some other website before learning jQuery on code school? Or do you think it's a good idea to just learn jQuery right out of the gate like they basically force you to do on their site?

jQuery is just a Javascript library. You can't use jQuery without knowing Javascript.
However, by following jQuery tutorials, you may be able to pick up enough Javascript to get along. But if this is the first procedural language you're using, you may also get very confused.

NetTuts, as good as it is for exposing a variety of different frameworks, is not a great place to learn jQuery or JavaScript. I would recommend getting your hands on some books referenced here:
https://stackoverflow.com/questions/11246/best-resources-to-learn-javascript

Related

Should I learn Angularjs first or Laravel? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I'm a beginner web developer, I decided to learn my first framework so it's my first time to use a framework and I decided to learn Angularjs & Laravel. which one should I start with ?
PS: I code in PHP and I know PHP OOP, also I'm kinda good at JS
Depends on what you want to do.
Basically, if you want to learn by your the self, I think the best way is to have a project.
Not a huge one which should start a revolution on internet, and that you will stop in two months.
One that you need to use and develop for a long time.
It can be lot of things, I let you think about it.
So if you want to do some JS project (canvas, multimedia streaming etc...), you should learn angularJS.
If you prefer to do some data / or server side project, it is better to learn Laravel.
You probably can find some project which need both of frameworks =) - mapping, or multimedia big data I do not know.
I think you should learn Angular first, as it is comparatively easy then Laravel.
Best tutorial I think for AngularJS is its official free course http://campus.codeschool.com/courses/shaping-up-with-angular-js/
I learnt from this videos only, its really helpful

What program does apple uses to create modular javascript files [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
When I looked at the new MacBook website from Apple I saw a nice smooth scrolling effect on the wireless page. I started digging in the JavaScript and found an uncompressed JavaScript file and I was blown away. (https://www.apple.com/v/macbook/a/scripts/wireless.built.js)
There were so many comments, and you could almost follow what they were thinking when they created this script. I tried to create a JavaScript file like this on my own, but in less than 5 minutes I figured out that it was almost impossible to keep it nice looking and understandable. So my question is: What program does Apple use to create this kind of JavaScript files? It is not a default code editor, but a program that supports built file. There are some good ones out there, but they all have libraries you have to follow, this one is just plain JavaScript and nothing more.
There's no tool to magically make your code look nice.
Apple has a strict code style guide that requires all developers to show discipline when writing code, or their code will be rejected from entering their repo.
It's nothing special really, just proper developer discipline.

Any reason for using JQuery over JS for simple tasks? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'll keep my question short. I've read this question about a delay function.
How to wait 5 seconds with jQuery?
and it struck me that people wanted to know about alternative ways to achieve this using JQuery.
In my understanding JQuery is nothing but a JS library. In many cases to introduce new functionality.
Now why would someone use JQuery if an original JS function is available and not even too complex?
Bonus question: Can JS functions be called from within JQuery? (this one, if negative might answer my first one, actually...)
In my understanding JQuery is nothing but a JS library. In many cases to introduce new functionality.
Yes, that is correct. In fact, your astute observation that people want to use jQuery where JS will suffice likely stems from a lack of understanding to this point!
Now why would someone use JQuery if an original JS function is available and not even too complex?
Someone may wish to use jQuery for certain functions if the JS-only equivalent is not well supported in all browsers.
Bonus question: Can JS functions be called from within JQuery? (this one, if negative might answer my first one, actually...)
Certainly! As you stated, jQuery is just a JavaScript library, and can be mixed with bits of plain JS without a problem.

JavaScript VS Handlebars.js [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
What are the benefits of using Handlebars.js, or any other such libraries, compared to just using JavaScript? So far I have not found anything in Handlebars that I cant do in just javascript.
JavaScript libraries make it easier and quicker to do things in JavaScript, anything a library can do, you can do yourself in JavaScript. But why would you? In pure JavaScript, if I wanted to select a element by id, I'd have to do this:
document.getElementById("coolId");
Or in JQuery (a JavaScript library) I could just do this:
$("#coolId");
It's quicker and easier than using pure JavaScript. Hence that's why I use JQuery to select elements and why I many different libraries - because they allow me to do things much quicker and easier than doing it myself in pure JavaScript, think of libraries as 'shortcuts' to achieving your goal functionality.
Edit: The drawbacks
However, whilst JavaScript libraries (generally) make our lives easier, as developers. They do come with drawbacks, including; large JavaScript files to download, taking longer for JavaScript engines to execute the code and, therefore, makes our code less efficient. For more on this, here are some links:
Advantages of using pure JavaScript over JQuery
What are the advantages and disadvantages of different JavaScript libraries?
The Pros And Cons Of JavaScript Micro-Frameworks
Thanks to Lix for the reminder.

Can we do all things using native JavaScript rather than using jQuery? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
Well nowadays I am learning jQuery. So I was just coding and I thought that is it possible to do all the things using JavaScript instead of using jQuery?
Yes, you can but you have to go through a long long way. But re-inventing the wheel is never a wise thing to do. The browsers does not know about the jQuery, jQuery is basically a javascript library, that exposes user friendly functions that have javascript behind them.
jQuery is a library written in JavaScript.
You cannot do anything in jQuery that cannot be done in JavaScript.
jQuery was designed to make client-side scripting easier, e.g. by using a CSS selector syntax to select DOM elements and the ease with which it could then traverse these and modify their content. It also irons out a lot of cross-browser compatibility issues (e.g. adding event handlers) and takes a lot of common tasks that require multiple lines of JavaScript code to accomplish, and wraps them into methods that you can call with a single line of code (e.g. AJAX).
But, at the end of the day, it's still JavaScript
jQuery is just a library written in Javascript, so yes - anything you can do in jQuery can be done in Javascript. It's not a different language, or interpreted by the browser in some special way - it's just javascript.

Categories

Resources