Ouch. The time I’ve just wasted calling a function getDataProviderId() to get the dataProviderId of an element.
And all because someone misspelt it many years ago! Can I suggest creating a second function getDataProviderId() to save future newbies from tripping over this?
I agree it’s pretty common, but calling the property dataProviderId and the function dataProviderID() is poor form in my book. Names are very important in programming.
And autocompletion is great but often requires JSDoc comments to be set up. Another quite high barrier for the newcomer.
it won’t trick you again.
My point exactly. It shouldn’t be trying to trick me!