JSON, the XML alternative
No comments
To really appreciate JSON its good to understand XML and why an alternative to XML exists. XML is a powerful robust markup language that makes many things that were formerly very difficult much more feesable. One of those things is data interchange between different systems. Data interchange between different systems has always been possible, however up until recent years it has been very difficult because of the lack of a unified protocol. These days most modern languages and DBMSs have XML parsing functions that allow you to grab the data that you need and search and filter your data with Xpath.
Click to continue reading “JSON, the XML alternative”
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”
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)”
Evil spaces
No commentsWhen thinking about optimizing your web application, something to consider is javascript and css compression. There are a few good javascript and css compressors, one you can use for free online is http://www.creativyst.com/Prod/3/. However these can obfuscate your code so that it isn’t readable. Sometimes that is the goal, but for projects in which you want to keep your code readable there are other methods to keep your code smaller.
Click to continue reading “Evil spaces”
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”
