Skip to content

Instantly share code, notes, and snippets.

@kellysutton
Last active August 31, 2017 03:42
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 kellysutton/c5b78fc03365a3d7ba223d1e7c895f2f to your computer and use it in GitHub Desktop.
Save kellysutton/c5b78fc03365a3d7ba223d1e7c895f2f to your computer and use it in GitHub Desktop.
Comment Drift
# This methods adds 2 numbers together
# @param x [Number] The first number that you would
# like to add
# @param y [Number] The number you would
# like to add to the first number
# @return [Number] The result of adding `x` and `y` together
def add(x, y)
x + y
end
# Adding 2 numbers together is a pretty important action
# for the system. We’ve chosen the traditional interpretation
# of what it means to "add."
#
# We were under some time pressure at the time, so we
# realize that this is not the most optimized implementation.
#
# If you need to ask someone about how or why this works
# the way it does, go talk to Kelly or someone else
# originally on Project X.
def add(x, y)
x + y
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment