The JavaScript Event Loop [Presentation]

Posted by & filed under JavaScript, Node.js.

I gave a talk this morning on the JavaScript Event Loop at Penguicon 2013. Even though I had used JavaScript for several years, I didn’t completely comprehend how the Event Loop works until a few months ago. When the opportunity came to present at Penguicon, I figured this was as good of a topic as… Read more »

Prototypal Inheritance in JavaScript

Posted by & filed under JavaScript, Node.js.

Prototypal Inheritance – How To Node – NodeJS A nice article on prototypal inheritance using some ES5 features (available in modern browsers and Node.js). Here’s an example of the code he comes up with: Object.defineProperty(Object.prototype, “spawn”, {value: function (props) { var defs = {}, key; for (key in props) { if (props.hasOwnProperty(key)) { defs[key] =… Read more »

Firefox 4 VS Internet Explorer 9 Benchmark Comparison

Posted by & filed under JavaScript.

I just ran Microsoft’s FishIETank test in both Firefox 4 (Beta) and Internet Explorer 9 (Beta) browsers, simultaneously, on the same machine. The machine has pretty good specs (8GB, 4×2.5 Ghz). Firefox had a framerate averaging about 59 FPS, while Internet Explorer had an average of 49 FPS, which gives Firefox a 17% performance advantage… Read more »

Enabling AJAX result script execution in MochaUI

Posted by & filed under JavaScript.

While working on the NeoInvoice project, we had the need to be able to execute script tags returned from the server via AJAX requests. For example, a person may make an update to a client, such as renaming the client or updating the clients email address. Depending on which items get changed, the clients panel… Read more »