Skip to content

Instantly share code, notes, and snippets.

@thomaspoignant
Last active November 3, 2016 14:32
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 thomaspoignant/38c2cedb3606e1dd6ce8e594652842bf to your computer and use it in GitHub Desktop.
Save thomaspoignant/38c2cedb3606e1dd6ce8e594652842bf to your computer and use it in GitHub Desktop.
For this blog post : https://medium.com/p/564d9ea76a8c
public ResultType methodName (
FirstArgType firstArg,
SecondArgType secondArg,
ThirdArgType thirdArg){
LocalVariable localVariable
= method(firstArg,secondArg);
if(localVariable.isSomething(
thirdArg, SOME_CONSTANT)) {
doSomething(localVariable);
}
return localVariable.getSomething();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment