Name your JavaScript functions

Name all functions, especially ones that are typically anonymous:

$("a").click(function linkClickHandler(e) {
	$("b").each(function bIterator() {
		// an error or expensive operation happens here
	});
});

Your stack traces and profiling logs become much more descriptive. (via)

via atworktoday:

02:59 pm, reblogged  by drj
 Comments



Notes