Via Geoffery Moller, I came across this article on Matt Snider’s blog. I’m surprised that no one noticed what (to me) was the most relevant difference in the libraries that he evaluated.
The “YUI method of class creation” is not distinctively YUI—it’s just what Javascript gives you for free. You can use the “Module …Read More
Javascript provides two very handy operators, in and delete.
Consider this code fragment:
var obj = {
foo : ‘quux’,
bar : ‘baz’,
doSomething : function () {
// do something…
}
};
So, we’ve created an object, and then some other things happen. Later in the code, we want to remove the “foo” property, so we do this:
obj.foo = undefined;
Still later, we …Read More
I originally posted this at isaacschlueter.com on Monday, October 23rd, 2006.
Memory Leaks.
What are they? How do they happen? What can be done about them?
This is a great question, and a topic that has a lot of mysticism surrounding it. Like most Javascript issues, there’s been a lot of very bad “authoritative” suggestions.
If …Read More