I had heard of the term Continuation
before, but had only glanced at it and never thought about how it could apply to JavaScript. Fortunately, someone else did the thinking for me. The low-down is that the Continuation Pattern can be used when executing really slow JavaScript algorithms that lock up the browser. By doing a Continuation, you can chunk
Function algorithms into smaller processes and free up the browser so that the user isnt stuck waiting 5 seconds for your complex JavaScript algorithm to finish. For a detailed explanation check out Marijn Haverbeke article:
Continuations in JavaScript
posted on August 9, 2007 @ 4:08 a.m. PST by Matthew Snider
Specificity
Specificity is measurement of the weight
associated with a CSS rule. This is one of the features that makes cascading stylesheets so powerful. If you find yourself attaching classes and not seeing the styles applied, then it is probably a specificity issue. In short, styles applied to id
attributes weigh more than those applied to class
attributes, which weigh more than those applied to tags. Specificity becomes complicated when considering CSS rules with multiple id
, ...
posted on July 28, 2007 @ 4:56 a.m. PST by Matthew Snider
Scalable vs Extendable
Working with a client this last week I realized that there was a difference between scalable applications and extendable applications, and that many people do not see the distinction. When designing a widget, I told the client that it would be scalable, meaning the widget could have as many instances and permutations (in a specific format) as they needed. However, I did not designed it in a way that allowed easy extending of the widget ...
posted on June 19, 2007 @ 8:36 a.m. PST by Matthew Snider