Why is learning JavaScript better than just learning jQuery?
1st July 2012
My answer to Why is learning JavaScript better than just learning jQuery? on Quora
jQuery is a JavaScript library. When you write code using jQuery you are programming in JavaScript. This line:
jQuery(“#foo”).hide()
Is calling a JavaScript function called jQuery, passing it the string “#foo”, then calling the JavaScript method called hide on the object that was returned from the jQuery function.
To write good, performant, maintainable jQuery you need to understand this—hence why some companies specify JavaScript as the particular skill they require. There are a surprisingly large number of client-side programmers out there who only know how to use jQuery and don’t actually understand how it works. The law of leaky abstractions demonstrates that they will be completely unprepared to deal with the inevitable bugs and challenges that they will eventually run in to: http://www.joelonsoftware.com/ar...
More recent articles
- Slop is the new name for unwanted AI-generated content - 8th May 2024
- Weeknotes: more datasette-secrets, plus a mystery video project - 7th May 2024
- Weeknotes: Llama 3, AI for Data Journalism, llm-evals and datasette-secrets - 23rd April 2024
- Options for accessing Llama 3 from the terminal using LLM - 22nd April 2024
- AI for Data Journalism: demonstrating what we can do with this stuff right now - 17th April 2024
- Three major LLM releases in 24 hours (plus weeknotes) - 10th April 2024
- Building files-to-prompt entirely using Claude 3 Opus - 8th April 2024
- Running OCR against PDFs and images directly in your browser - 30th March 2024
- llm cmd undo last git commit - a new plugin for LLM - 26th March 2024
- Building and testing C extensions for SQLite with ChatGPT Code Interpreter - 23rd March 2024