Permalink

10

Large-scale JavaScript Application Architecture

Read Later submit to reddit

Developers creating JavaScript applications these days usually use a combination of MVC, modules, widgets and plugins for their architecture. They also use a DOM manipulation library like jQuery. Whilst this works great for apps that are built at a smaller-scale, … Continue reading

Permalink

25

Exploring JavaScript’s Logical OR Operator

Read Later submit to reddit

In JavaScript, logical operators are used for boolean logic where a boolean value may be returned depending on the outcome of an expression. With the || (OR) operator, since values don't need to be explicitly true or false (they can … Continue reading

Permalink

1

More Lessons From A JavaScript Code Review

Read Later submit to reddit

Before we start, I’d like to pose a question: when was the last time you asked someone to review your code? Reviewing code is possibly the single best technique to improve the overall quality of your solutions, and if you’re … Continue reading

Permalink

18

Demystifying jQuery 1.7′s $.Callbacks

Read Later submit to reddit

A brand new feature introduced in jQuery 1.7 is $.Callbacks, which we'll be taking a look at today. $.Callbacks are a multi-purpose callbacks list object and if you've had a chance to play around with jQuery's $.Deferred functionality (Julian Aubourg … Continue reading

Permalink

22

Faster JavaScript Memoization For Improved Application Performance

Read Later submit to reddit

Whilst not new by any means, memoization is a useful optimization technique for caching the results of function calls such that lengthy lookups or expensive recursive computations can be minimized where possible. The basic idea is that if you can … Continue reading