December 2007
4 posts
Trying to fix one of the biggest problems in... →
John Resig:
“Secondly, if a Class-style function is meant to be instantiated, and isn’t, it can in turn end up polluting the current scope (frequently the global namespace), causing even more unexpected results.”
John makes a great observation, but draws what (in my opinion) is the wrong conclusion. I think all that we should be doing is some simple error checking, like:...
Sweet JSON encoding for Django →
Wolfram Kriesing:
“Just in case someone is using json_encode() I wrote a while ago, I have updated the function due to updates in the latest Django dev version.”
The one other thing I’d added to this in some of my projects is to check to see if an object has a “__json__” attribute and call that if it does.
1 tag
Using the evil $ with Dojo →
James Burke:
“So, how can we define a function named $ that works with the base Dojo functionality (the stuff you get in dojo.js: DOM querying, event handling, XHR, style, basic effects, JSON, array, language and object hierarchy helpers). Ideally, $ would be mapped to dojo.query, to allow easy node selection, but then any other dojo method, like dojo.connect() would be available via...
Nice overview of using CouchDB with JavaScript →
Jan Lehnardt:
“A document is the central data structure in CouchDB. It is a lose collection of keys and values, just like our todo object.”
A little too focused on the DOM manipulation, but it would be extremely interesting to build an application around this.