![]() ![]() Functions with long or complex argument lists can be aligned like a block.Use aligning agressively including for datastructures and other delimited things.Perl is in general too complex to be automatically formatted. Perltidy should probably be used as a lint and the suggested changes applied selectively. Need to find an "optimal" setting and apply it. NB: inherited from the old page StyleGuide (last edited in 2007). ![]() Douglas Crockford's "The Elements of JavaScript Style", part 1 and part 2.Sencha's "Javascript Code Style Guide with examples".So by enclosing strings in single quotes, we don't need to escape double quotes. * Double quotes require two keystrokes (on some keyboards)! Simple quotes are quicker (and save toner )Īlso, I suspect we tend to print " more often than ' on our geeky outputs (and on debug lines), ![]() Var isLarger = (keys.length > values.length) ? true : false Var values = // Trailing one-line comment (separated from the actual code with 4 spaces). we can using this several variables declaration (by default in JSbeautifier) * Intended to be processed by either JSDoc or YUIDoc. Multi-line comments Single-line comments Variable declaration Tools we use for formatting * Short description of this module, package, file, class or method (in a sentence, ending with colon).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |