Code smells in CSS – CSS Wizardry – CSS, OOCSS, front-end architecture, performance and more, by Harry Roberts

Code smells in CSS – CSS Wizardry – CSS, OOCSS, front-end architecture, performance and more, by Harry Roberts. Reading this, I hang my head in shame as I recognize things I am guilty of. There are CSS tools like http://csslint.net/ which purport to automate helping you write better CSS. It’s easy to think that CSSLint is […]

Extend the Web Forward « Katz Got Your Tongue?

Browser implementers are often wary of providing extension points that can be performance footguns. The biggest footgun is using libraries that rewrite the entire stack in JavaScript, and whole-stack-rewriting strategies are the tactic du jour today. For performance, we have little to lose and much to gain by making extensions more granular. via Extend the […]

Ben Alman » Multiple var statements in JavaScript, not superfluous

Ben Alman » Multiple var statements in JavaScript, not superfluous. I think I’m in denial about the potentials for major issues with combined var statements. I use the style because Crockford does, and I am irrationally likely to take what he says as gospel. This is a great dissection of the practice.

JavaScript Scoping and Hoisting

Adequately Good – JavaScript Scoping and Hoisting – by Ben Cherry. I was not aware at all of “hoisting” in JavaScript, which causes your variable declarations (but not initializations) to be rearranged to the top of your function scope by the interpreter. Function definitions, however, are hoisted along with the function body. Implications: potentially unexpected behavior […]

Terrible Mobile Websites

Chrome for Android’s new feature subverts websites that automatically redirect you to a mobile version by spoofing Chrome for Android’s user agent string, in this case sending the string for the desktop version of Chrome instead of the mobile via Chrome for Android Doesnt Need No Stinking Mobile Websites | Webmonkey | Wired.com. Dear developers […]