D
D
Dmitry2019-07-21 22:21:27
JavaScript
Dmitry, 2019-07-21 22:21:27

Does it make sense to learn jQuery?

I have been studying the web for half a year, I have studied the basics of js, now I am thinking whether it makes sense to study jquery or not.
On the one hand, it is required everywhere, and on the other, everyone says that it will die soon

Answer the question

In order to leave comments, you need to log in

5 answer(s)
P
profesor08, 2019-07-21
@idontgetit

there is nothing to learn there

$(selector).css({});
$(selector).each(el => void);
$(selector).on("click", event => void);

X
xmoonlight, 2019-07-21
@xmoonlight

If you edit old sites, you need to learn the basics.
If you do it from scratch - there is no point in learning it at all.
Everything can already be done with the same ease using native JS.

V
Viktor Kozhukhar, 2019-07-22
@vitiok78

1. Learn JS
2. Have a superficial knowledge of jQuery
3. Write your own micro-jQuery for study purposes - really helps you figure it out.
4. Use jQuery if you need to quickly rivet landing pages. Use pure JS in more complex projects.
Without knowledge of JS, you should not take on jQuery, because you don’t want to learn JS yourself, and this will cause huge problems when you need to do something more complicated. I myself started with jQuery a long time ago, and then I had to study JS in emergency mode, I lost a lot of orders

M
mr-troll, 2019-07-22
@mr-troll

Definitely needed. This is a library, not a framework, what can you learn there. In version 4, where everything is going, instead of sizzle, the selectors will be on the native document.querySelectorAll. In general, the minimum size will turn out if you collect everything in one bundle. jQuery itself takes about a quarter of the entire bundle for me.
Functions like $(selector).load(), $(...).show(500), $(...).offset(), various event handlers, everything can be written natively, but why? Use it if you see that there are only a couple of functions from it for the hall - they drank.
Moreover, you should also learn jquery-ui, although it is better to use it in home projects, but anyway, .datepicker or dialog will save you a lot of time.

D
darkair2, 2019-07-22
@darkair2

Question from the series Do I need to learn to program in order to program.
Real programmers do not ask what they need to learn, they choose a tool for the task, open the documentation and write a prototype by the evening. jQuery is a very handy tool for working with dom, so decide if you need it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question