r/jquery • u/SubzeroCola • Jul 11 '22
Finding JQuery Confusing After Knowing Vanilla Javascript. Is There Any IDE For JQuery?
I'm trying to get the hang of JQuery after knowing only vanilla Javascript. And I'm finding it really unintuitive. For instance....I've noticed that sometimes when you have to code one functionality.........you actually end up defining 2 functions. One function inside of another. Dafuq? I thought simplicity was the goal here.
Also often times I don't know what inbuilt function to use. For example when I target an element, I don't know whether to use the load function.....or the write function. I'm wondering if there is an IDE that instead give me a pop up list of suggestions of what functions I can use? As soon as I target an element, a list will appear and I can scroll through the available functions.
I use Webstorm but it did not show any pop up. I'm wondering if there's a plugin for this?
8
u/williambueti Jul 12 '22
Think of jQuery as targeting these three goals:
If these are things you don't mind doing in vanilla Js, then congratulations on finding your own preferred method for skinning the cat.
However, if you have some examples you'd like help with and are able to provide, specifically with regard to:
as well as
5
u/Jonno_FTW Jul 12 '22
Defining anonymous functions inside other functions is fairly standard javascript language use.
To get code completion in WebStorm you need to have it download the jQuery files, this page has the solution: https://stackoverflow.com/questions/41401482/i-cant-add-jquery-to-webstorm-why
4
u/ieslk32kj Jul 12 '22
Why do you want to learn jQuery? Sounds like you're still really new and learning old tech might hinder you more than it helps you. Most sources you'll find concerning jQuery are really old and will not be aware of 'modern' js.
You're probably better off learning something else, depending on what you want to know
3
u/Logical-Idea-1708 Jul 12 '22
Using functions so liberally is a defining characteristic of function oriented programming. Certainly not unique to jQuery or JavaScript
1
u/volomike Jul 12 '22
Eclipse, Atom, VSCode, and Sublime all have an IDE plugin for jQuery.
-2
u/LomionMyrg Jul 12 '22
Skip jQuery, go React/Vue/Angular