-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating debounce documentation #2858
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing! I think this is a really nice, correct and probably clearer way to describe _.debounce
. Good job.
There are two very minor language adjustments that I've pointed out in the comment below.
There is one catch. Not to worry, we're still going to merge this, but we have to restructure the diff a bit first. Currently, at the master
branch, the primary source code is not in underscore.js
but in modules/index.js
(this changed specifically in #2826). This is however to be outdated again very soon, when we merge #2849 which will move _.debounce
to its own dedicated module. That PR is finished, I just didn't sit down to merge and announce it yet. I'll probably do that tomorrow.
So to get this on the master branch and into the next release, you have a couple of options. It's up to you which you prefer:
- Run
npm install
, copy your updated comment block to themodules/index.js
and create a new commit. Then have this merged before Chopping Underscore into lots of tiny modules #2849. I will make sure your new comment is preserved when merging Chopping Underscore into lots of tiny modules #2849 in this case. - Like the previous option, but wait until Chopping Underscore into lots of tiny modules #2849 is merged and then first merge in the
master
branch before doing the other things. Also, copy your updated comment tomodules/debounce.js
instead ofmodules/index.js
. This is the least effort for me but it takes a bit longer. - Do nothing and have me fix it after merging Chopping Underscore into lots of tiny modules #2849. This is the least effort for you, but also potentially the slowest.
Co-authored-by: Julian Gonggrijp <dev@juliangonggrijp.com>
Thanks @jgonggrijp ! I've noticed that #2849 was merged, so I'd like to continue with option 2. However, I don't understand why |
Welcome! The devDependencies include |
# Conflicts: # underscore.js
@jgonggrijp, By mistake the two commits above were made with my company's user. Lol. Are we all set? |
As far as I'm concerned, we're all set. Are you sure you're comfortable with your company account taking the credit, though? I wouldn't object to a force-push so you can rectify the commit attribution. See https://stackoverflow.com/questions/3042437/how-to-change-the-commit-author-for-one-specific-commit if you don't know how to change the attribution. |
There are 3 commits on my private user. So if the difference is that there will be 3 commits on my user instead of 5 I really don't mind. |
So which route do you prefer? Merge as-is, or redoing those last two commits? |
I prefer we merge as is. |
Thanks for your contribution @carpben! |
This PR tries to solve #2762 and updates the definition/documentation of the debounce function.
I'm not a native English speaker, so the wording might need to be adjusted. However, I think that talking in terms of sequence can make things easier to understand.