TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Is it bad to master jQuery without any knowledge of the undelying JS?

7 点作者 assane101超过 11 年前
or said the other way : "How bad is it ?"

13 条评论

bdfh42超过 11 年前
jQuery is a brilliant tool for manipulating the DOM and for managing AJAX calls etc. etc.<p>However you can&#x27;t truly master jQuery without also developing a thorough understanding on JavaScript. The alternative would be to construct a hodge podge of jQuery plugins and widgets to get things done - and then running into all the limitations, conflicts and outright bugs they will bring with them. [I have borrowed from such sources but have always needed to modify the code]. Much better to be able to write clear straightforward code of your own in JS - taking advantage of jQuery when it is an advantage of course.<p>Apart from anything else JS is a delight and learning how to use it will develop your programming skills.
karolisd超过 11 年前
It&#x27;s not bad. jQuery is a JavaScript library and you&#x27;ll learn JS as you go. It&#x27;s only bad if you fall into the stereotype of not caring and just copy&#x2F;pasting jQuery snippets from Stack Overflow.
mercnet超过 11 年前
I am in this position right now as I am working on a startup in my free time. I&#x27;ve been coding the backend API in Flask but I am delaying the frontend due to a lack of JS knowledge. There are plenty of jQuery examples but sometimes I have no idea what I am looking at or how the code is flowing. My lack of JS skills will probably introduce security risks into my website.<p>So I am now forcing myself to start working on some basic JS tutorials and my friend recommended I pick up this book: jQuery: Novice to Ninja: New Kicks And Tricks.
santa_boy超过 11 年前
It really depends. I would say it is bad if you want to claim mastery of JS.<p>However, I all the time need to get things done using tools like jQuery, underscore.js, async etc ... These libraries make my work so much easier and I don&#x27;t necessarily understand the internals of their working.<p>Things seem to working fine so far and my knowledge of the fundamentals keeps on improving as I work. That works just fine for what I am trying to accomplish.
tonyarkles超过 11 年前
As others have mentioned, it&#x27;s impossible to &quot;master&quot; jQuery without a very solid understanding of JavaScript. You&#x27;ll end up with code that does way more work than it needs to, and is way sloppier than it should be. I&#x27;m pretty certain that mastery is impossible without an understanding of the foundation and the abstractions.
ac2u超过 11 年前
Pretty bad if you plan on employing lots of JS in the long run. As fantastic as jQuery is, when it&#x27;s all you know, everything looks like a $-shaped nail.<p>That said, you don&#x27;t need to go crazy and go off it cold turkey, you can very much expand your JS knowledge while using jQuery still for day to day AJAXy and DOM manipulation tasks.
bl0cky超过 11 年前
Might not call it bad, but you should really also learn JS - as brilliant as jQuery is, it can&#x27;t really do everything. It&#x27;s also much better to know js in order to debug stuff that misbehave (you can also download the un-minified jQuery code and just step into to it ... can save a few hairs off your head)
Collizo4sky超过 11 年前
IMO =&gt; jQuery is just another javascript framework. It is best u understand and know basics of JS before mastering jQuery
dsschnau超过 11 年前
I think its naive to say &quot;I have mastered jQuery but I don&#x27;t have any knowledge of JavaScript.&quot;
bennyg超过 11 年前
Just learn both at the same time. That&#x27;s what I&#x27;m doing right now with various side projects.
ulisesrmzroche超过 11 年前
You can&#x27;t master jQuery without any knowledge of JS, but you an work with it ok enough.
adamconroy超过 11 年前
Just learn JS already. It isn&#x27;t that hard.
gondo超过 11 年前
yes