Last active
December 19, 2015 18:08
-
-
Save mertcetin/5996376 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Four-space, wrap at 120. Works with very long function names, survives | |
// renaming without reindenting, low on space. | |
goog.foo.bar.doThingThatIsVeryDifficultToExplain = function( | |
veryDescriptiveArgumentNumberOne, veryDescriptiveArgumentTwo, | |
tableModelEventHandlerProxy, artichokeDescriptorAdapterIterator) { | |
// ... | |
}; | |
// Four-space, one argument per line. Works with long function names, | |
// survives renaming, and emphasizes each argument. | |
goog.foo.bar.doThingThatIsVeryDifficultToExplain = function( | |
veryDescriptiveArgumentNumberOne, | |
veryDescriptiveArgumentTwo, | |
tableModelEventHandlerProxy, | |
artichokeDescriptorAdapterIterator) { | |
// ... | |
}; | |
// Parenthesis-aligned indentation, wrap at 120. Visually groups arguments, | |
// low on space. | |
function foo(veryDescriptiveArgumentNumberOne, veryDescriptiveArgumentTwo, | |
tableModelEventHandlerProxy, artichokeDescriptorAdapterIterator) { | |
// ... | |
} | |
// Parenthesis-aligned, one argument per line. Visually groups and | |
// emphasizes each individual argument. | |
function bar(veryDescriptiveArgumentNumberOne, | |
veryDescriptiveArgumentTwo, | |
tableModelEventHandlerProxy, | |
artichokeDescriptorAdapterIterator) { | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment