JavaScript: Douglas Crockford the Better Parts: the Bads Parts Reconsidered

By Xah Lee. Date: . Last updated: .
Douglas Crockford on JavaScript using this 2015-02-05
Douglas Crockford on using JavaScript this. [source]
Douglas Crockford: The Better Parts at JSConfUY 2014. (jump to 18:50 for the “the Bads Parts Reconsidered”)

Summary of the “Better Parts”

Douglas Crockford stopped using Object.create(). Because he stopped using this. And he stopped using new long ago.

• Stopped using “for loops”. Instead, use arrayX.forEach(),, etc. [see Array.prototype]

• Stopped using for in anymore. Use Object.keys( obj).forEach(f) instead. [see Access Property]

• Use ES6's tail recursion feature, instead of while statement.

JS in Depth