Javascript in a new Light
No commentsI 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”
Publish subscribe model
No commentsThe 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”
Javascript Debugging Part I (Visual Studio + IE)
1 comment so farDebugging 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)”
Javascript DateAdd Function
No commentsThere 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”
Javascript loop performance
No commentsI’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”
