Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Knowing JavaScript well is probably one of the most challenging and rewarding things you can do as a programmer

Do others agree with this (the importance of learning JavaScript the language well)?

As someone just learning JS and jQuery and just starting out with web development, JavaScript seems like a rather boring language that is strangely ill-suited to manipulating the DOM.

If JavaScript was jquery then I could see myself thinking of it as a really cool language worth exploring beyond "how can I do x".



I don't think your question makes much sense - you aren't going to get very far if you can't or won't distinguish between a language and its common libraries.

One thing I will concede is that using vanilla javascript to manipulate the DOM is very, very painful, which is exactly why libraries like prototype and jquery exist - to help make this less tedious and to make your experience, as a developer, more pleasurable and faster (as well as for your code to be DRYer, but that's just an added bonus, I'd say).

When you say "if javascript (were) jquery...", I can't help but think you don't understand jQuery. It's a library for javascript. Would you say "If Ruby were Rails then ..." ? No, you wouldn't, because Ruby on Rails is built on top of the language, just as jQuery is built on top of javascript.

Sit down sometime and read the source of jQuery and you will very quickly see that javascript is a really cool language that you can do cool stuff in. If jQuery doesn't float your boat, then maybe you should look at underscore.js - there is a very good annotation for it linked off their website.


I understand the concept of a library. What I don't understand is: JavaScript was designed as a domain-specific language, yet performing the most common tasks that it was designed for (manipulating the DOM)is, as you say, "very, very painful".

If you consider a language's standard library to be part of the language, then it seems like poor language design not to build-in functionality that makes manipulating the DOM at least as easy as jQuery makes it.

Thanks for the response, I will certainly peruse the jQuery source.


JavaScript is definitely not "a rather boring language." I actually prefer it to quite a few others.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: