Monthly Archives: November 2013

Underscore.js Signifies the Modern Web

_Any programmer doing heavy-duty JavaScript coding will have discovered underscore.js by now.

Whenever I create a block of code and think that there’s got to be a more elegant way, I find that underscore has the utility. I still find myself surprised and delighted when I discover yet another, needed function on that list that I had overlooked before.

Underscore’s web site itself is a case-study on the best of the Modern Web.  With the list of  Undercore’s “80-odd” functions running down the left-hand side — an easy visual scan — the landing page is focussed on matching the programmer with the sought-after utility in record time.

The functions themselves represent the difference between where the JavaScript language left off and where concepts in modern programming are today. “Map-reduce”, “Array-like objects”, “Functional programming”; these are just of the few categories that Underscore addresses.

 

A Fix to SAXReaderNotAvailable on Python

Python SOAP. Using the Suds client.

Needing a SOAP client, to run on the Bitnami Node.js Stack on Amazon, I could not find a mature and easy-to-use JavaScript library. I chose to use Python and Suds.

It was a pleasure to find Python 2.7 already installed with the stack.  But after installing Suds and trying to run some scripts developed on a Windows platform, I got the “SAXReaderNotAvailable” error:

Through the usual Google-search-led trial-and-error process I found the following fix: directly install PyXML.  (Thanks to TheRosiek.com.)

A “PyXML ” Google search suggests that it has been discontinued for more than half a decade, but it is being updated and it is what is working for me right now.

I’d love to hear about any alternatives to PyXML.