Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Perhaps this should be something like:
To make the context more obvious and to be more consistent with the way we've done things for
Array
methods?(I don't know if this also implies that we should rename this to
htmlmediaelement-fastseek
too.)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.
Consistency you say? How about
checkVisibility()
andscrollIntoView()
?For Array, in many cases the prefix is needed to distinguish arrays and types arrays, and the
includes()
method also exists onString
andIDBKeyRange
.Also consider
requestVideoFrameCallback()
which is certainly long enough to stand on its own, and is onHTMLVideoElement
, notHTMLMediaElement
. Having "HTMLMediaElement fastSeek()" + "HTMLVideoElement requestVideoFrameCallback()" doesn't feel right to me, too much irrelevant technical detail.I think the guideline I'm imagining is along the lines of "use the shortest plausible name except when ambiguous and when there's a group of related features, make the same choice for all of them for consistency within that group."
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.
OK, yes, I like the idea of using the shortest without creating ambiguity. I'll backtrack a little on #655 (comment) too.
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.
Excellent, thank you! That discussion will continue in #548.
Are you happy (enough) with this name for now?
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.
Yes, I'm satisfied now. I'll approve this PR, but I'll leave it to you to decide to merge or wait for Patrick's review.