Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (20 sloc) 428 Bytes
<!doctype html>
<html lang="en">
<head>
<title>JavaScript Patterns</title>
<meta charset="utf-8">
</head>
<body>
<script>
/* Title: Be Specific when Needed
* Description: no need to be over-specific
*/
// antipattern
var arms = $('.data table.attendees td.brad');
// preferred
var arms = $('.data td.brad');
// References
// http://paulirish.com/2009/perf/
</script>
</body>
</html>