17
Oct
Author: Dave Cassel | Category:
Software Development
Another day, another code review. Today I came across a function that generates non-meaningful XML. This is something that at first glance feels like it has a nice structure to it, but there’s a better way. First, let take a look at the XML (I’ve changed the XML and the code to make it anonymous, […]
14
Oct
Author: Dave Cassel | Category:
Software Development
Today I was looking into some code that was running slower than it should, and I happened across this little tidbit: let $normal :=  try {   xs:int($value)  }  catch($e) {   $value  } Yes, MarkLogic extends XQuery to add try/catch, and this is a tremendously useful feature, when […]