Archive by Author

BetterXML

Everyone hates the way that PHP’s SimpleXML object handles variables. We find ourselves constantly checking if the string we’ve been given back contains numeric or boolean values. Well… here’s a quick fix. <?php   /** * A decorator for SimpleXML to add 2 important things: * 1) The "hasChildren() method". * 2) The "asVar()" method [...]

YAML Reference Card

Our projects contain a lot of configuration. So much, in fact, that our parsers have been struggling with the size of our files and causing sites to time out :s. Therefore, the exemplar team have created a reference YAML. We write some default configurations in our reference YAML and then our main configuration can use [...]

YUI errorLogging

As we have decided to start using the YUI javascript framework, I rewrote the logging tool I did for jQuery. I understand there’s already a logging tool for YUI, but if you don’t want to initiate the logger, here’s a quick fix: YAHOO.namespace(’IPC’);   (function(Y) {   var Log = { debug : function(message) { [...]

JavaScript frameworks

We’ve been looking around at what’s available and what we think could possibly suit exemplar best.

jQuery error logging

As I may very well be doing alot of development in jQuery in the up and coming future, I decided to start by writing an exception throwing and logging plugin.