Tag Archives: JavaScript

Bug in partial function implementation

I spent the better part of a day debugging a flaw in Resig’s implementation of partial function described in his post Partial Application in JavaScript and my use of which I outlined in my recent post JavaScript “Currying” Functions. It … Continue reading

Posted in Development | Tagged , | Leave a comment

JavaScript “Currying” Functions

I’m trying to generalize the code that makes call to Azure Data Market services then geolocates and plots the results with Google Maps. Much of this functionality is async with callbacks and I’m using a mixture of curried and partial … Continue reading

Posted in Development | Tagged | Leave a comment

Unit testing JavaScript private members

While, convention dictates that you don’t unit test private members… I use a slight variant of the self-executing anonymous functions pattern that support public and private members described by Elijah Manor here. It serves me well. As the pattern’s name … Continue reading

Posted in Development | Tagged , , | Leave a comment

Sending JavaScript arrays of arrays to Web API: Part 1

Encountered a bunch of challenges this week in my attempt to serialize JavaScript arrays of arrays so that these could be sent using jQuery AJAX to an MVC 4 Web API. I believe (though would be happy to proven wrong) … Continue reading

Posted in Development | Tagged , , , | Leave a comment