GNU/Linux Inside

Tag Archives: Development

IE toString() Not Enumerable: Workaround 0

While working on a project of mine, I noticed that overriding toString() on an object would not cause it to show up when looping through the object’s properties with for in Internet Explorer 6 (I have not tested what other versions are affected). My suspicious were verified on StackOverflow: http://stackoverflow.com/questions/3679233/are-there-still-ecmascript-3-implementation-differences-in-major-browsers/3679293#3679293 To clarify, this is the [...]

Node.js modules and instanceof operator 0

There are many moments in a developer’s life where things simply don’t make sense. You test even the most obscure solutions to try to figure out the problem, when the actual solution ends up making perfect sense (though it may be subtle). The case of modules in Node.js with use of the instanceof operator was [...]

PHP Performance: Array Iteration 5

In PHP, arrays are used for virtually everything (I’ll spare my rant on that), therefore it’s likely that you’re going to use them abundantly in your scripts. The issue we’re going to be focusing on here isn’t with the arrays themselves – it’s the simple fact that you’re probably going to have to iterate over [...]