Sencha Cmd post-build Ant utilities

If you’re using Sencha Cmd for your Ext JS or Sencha Touch application, then you may be somewhat familiar with the build.xml file.

This file is auto-generated by Sencha Cmd when you create a new project and allows you to add all kinds of hooks into the Sencha build process (which runs on top of Ant).

Over the past several months I’ve seen a number of ways in which developers are using their build.xml file to customize their production builds – and I thought I would share one with you today.

JavaScript Console API – Browser Differences

Recently I was asked by a client to if using console.log() would be appropriate in enterprise web applications.

Not everyone agrees with me, but my opinion is simple: Production applications should rarely, if ever, use the console API. I don’t think these statements should ever be checked into version control – they clutter your code, and ultimately make debugging more difficult (because you have to ignore console messages unrelated to a given problem).

Additionally, I have seen errors reported in Internet Explorer by the console object – runtime errors that are in effect bugs in your code.

We went on to discuss the console API and how it offers more than just the standard console.log() method. That got me thinking… even though the major browsers seem to support a consistent console API, are there any actual differences in the implementations?