Skip to content

Instantly share code, notes, and snippets.

@Bloofer
Created December 24, 2018 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bloofer/75117194d84dff6cfe8f6b703d84b60e to your computer and use it in GitHub Desktop.
Save Bloofer/75117194d84dff6cfe8f6b703d84b60e to your computer and use it in GitHub Desktop.
lone line example
// Bad Idea
// hard to follow
if (x && y && myFunctionThatReturnsBool() && caseNumber3 && (15 > 12 || 2 < 3)) {
}
// Good Idea
// Logical grouping, easier to read
if (x && y && myFunctionThatReturnsBool()
&& caseNumber3
&& (15 > 12 || 2 < 3)) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment