posts | commentsAdd to Google
28Sep

Javascript in a new Light

No comments

I just installed minefield on my computer and enabled the new TraceMonkey javascript engine and all I can say is wow. In case you don’t know what TraceMonkey is, in short it is an extremely powerful javascript engine that allows for native compiling of javascript. Javascript is now competing with compiled languages instead of interpreted scripting languages. To see TraceMonkey in action for yourself simply download ‘MineField’ from Mozilla and go to your config (about:config) and set javascript.options.jit.content to ‘true’.

Click to continue reading “Javascript in a new Light”

02Aug

Publish subscribe model

No comments

The Publish/Subscribe model allows you to build loosely coupled applications in which an event is ‘fired’ and subscribing functions ‘respond’. This can be very powerful, if implemented correctly, and provides your application with more scalability.

Click to continue reading “Publish subscribe model”

03Jul

Javascript Debugging Part I (Visual Studio + IE)

1 comment so far

Debugging is something that all mortal programmers must do. Any programmer who claims that his code is perfect the first time he writes it is #1 Lying #2 A legendary immortal Greek god of Programming. I for one am not a legendary immortal Greek god of Programming so I need methods to debug the code that I write. In this article, I’ll be talking about methods of debugging Javascript in Visual Studio and Internet Explorer. Part II will be debugging Javascript in Eclipse and Firefox.

Click to continue reading “Javascript Debugging Part I (Visual Studio + IE)”

20Jun

Javascript DateAdd Function

No comments

There are many date add methods online. I recently needed a simple bulletproof method for dateadd and didn’t like any of the ones i found online so i figured i would actually sit down and write one ;). Here’s what I came up with.

Click to continue reading “Javascript DateAdd Function”

14May

Javascript loop performance

No comments

I’ve recently been working on a large javascript based application that does a lot of DOM manipulation. There are literally thousands of loops throughout the application that traverse the DOM and make changes in some way shape or form. The application has been running slow of late and we’ve been working through small ways to optimize performance. One of the things that I noticed is that literally all of our loops were written the following way:

Click to continue reading “Javascript loop performance”