diTii.com Digital News Hub

Sign up with your email address to be the first to know about latest news and more.

I agree to have my personal information transfered to MailChimp (more information)


Revenge of the $

There was a lot of talk on namespaces, and conflicts with the $ function.

This problem is made worse in the JavaScript world due to the fact that you have to ship the JS that your app needs each time. Practicalities mean that a lot of developers have build tools that generate a minified js file. One big file. One download.

This has lead to years of copy ‘n paste reuse. I have seen people take the $ function from Prototype and put it in their own helpers.js file.

If we could declare standard libraries and have them cached in the browser nicely we wouldn’t have this problem:

  • import dojo.foo v2.1
  • import openajax.$ v3.0

We could standardize $ and keep it simple.

Share This Story, Choose Your Platform!

Get Latest News

Subscribe to Digital News Hub

Get our daily newsletter about the latest news in the industry.
First Name
Last Name
Email address
Secure and Spam free...