My Shitty Code

Embracing the Messiness in Search of Epic Solutions

Tag: Moment.js

  • Managing the Order of AJAX Calls on Input Field’s Keyup Event

    SCENARIO Consider the following code:- When user types an employee’s name, “Mike”, in the search field, a web service call is fired per character typed. In this example, the following web service calls are made:- Let’s assume this web service searches the input string against databases (or flat files, Facebook API, etc) and returns a […]