JS: The Right Way Dojo Style Guide Contents: This document follows the basic outline of the Java Programming Conventions Guide, a copy of which may be found at Widget authors are expected to adhere to this style guide and also to the Dojo Accessibility Design Requirements guidelines. General Any violation to this guide is allowed if it enhances readability. Guidelines in this document are informed by discussions carried out among the Dojo core developers. Quick Reference Table of core API naming constructs: Table of constructs that are not visible in the API, and therefore carry less weight of enforcement. Naming Conventions When constructing string IDs or ID prefixes in the code, do not use "dojo", "dijit" or "dojox" in the names. Specific Naming Conventions The terms get/set SHOULD NOT used where a field is accessed, unless the variable being accessed is lexically private. Files Class or object-per-file guidelines are not yet determined. Variables Layout Documentation Markup Guidelines Tags ?
Mastering The Developer Tools Console The developer tools console is one of the most powerful tools available to you when it comes to debugging your front-end web applications. The console has an API that provides a number of methods that make debugging easier. It’s not uncommon to see developers using console.log() or console.dir() to investigate problems; but the developer tools console has a lot more to offer. In this blog post you’re going to learn how to debug your web applications using the methods provided by the console API. Some browsers support more functionality than others so I’ll be pointing out any compatibility issues as we go. Lets get started! Using the Developer Tools Console If you haven’t used the developer tools console before, don’t worry. There are a number of different ways that you can open your browser’s developer tools. You can also launch the developer tools using a keyboard shortcut. The developer tools console in Chrome. The ‘Elements’ tab with a console pane at the bottom. Great! console.clear()
You Might Not Need jQuery