Posts tagged 〝code〞

(page 1 of 2)

Cleaning up the “CSS only sexy bookmark” demo code

January 8th, 2010 at 3:12 pm

Rewriting a CSS-only sharing bar as a semantic list with real link text, then using the cascade to cut the CSS from 1028 to 880 bytes and keep it accessible.


Generating tutorials from source comments with Tutorialbuilder

May 13th, 2008 at 11:47 am

Tutorialbuilder is a PHP tool that turns commented JavaScript source into a step-by-step tutorial with highlighted code, downloads and a minified version.


Five things to do to a script before handing it over to the next developer

February 7th, 2008 at 1:15 am

Refactor JavaScript before handover in five steps: move styling to CSS, fix speed issues, put labels in a config object, use readable names, comment and sign.


Code tutorials for lazy people with Ajax Code Display

January 28th, 2008 at 5:03 pm

Ajax Code Display is a jQuery script that turns links to HTML examples into escaped, line-numbered code with highlighted lines and a live iframe preview.


JavaScript shortcut notations that shouldn’t be black magic to the “average developer”

November 27th, 2007 at 10:29 pm

JavaScript shorthand every developer should know: array literals with square brackets, object literal notation, property access and ternary-style defaults.