Skip to content

Instantly share code, notes, and snippets.

@Fluxx
Created October 8, 2013 00:20
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 Fluxx/6877404 to your computer and use it in GitHub Desktop.
Save Fluxx/6877404 to your computer and use it in GitHub Desktop.
# bad
def foo():
bar = 1
return bar
# good
def foo():
return 1
@branden
Copy link

branden commented Oct 8, 2013

#bad
def foo():
    bar = 1
    baz = qux(bar)
    return baz

#good
def foo():
    return qux(1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment