3 ms·
Hi Guys I just want to give you some feedbacks in the comments (I am the author of this article). Firstly, with regards to the title, I did not read the newsg
by bazsouthafrica 14y ago
Hi Guys
I just want to give you some feedbacks in the comments (I am the author of this article).
Firstly, with regards to the title, I did not read the newsguidlines document - I have submitted links in the way and style that other people did. For sure, in the future, I will follow these guidlines, but this must be a huge problem as lots of people do this.
Secondly, these are patterns (not language features). Yes, I was inspired by Douglas Crockford's book where he describes this as patterns. To me describing them as patterns makes sense: For instance, there is really nothing different about calling a method and a function. If you have to make a difference, then it is a pattern. And because putting new in front of a function also calls that function, it is in my mind a pattern. And in that sense, so is apply.
But I welcome the debate, and thanks for the constructive comments. I will take all these comments into consideration the next time I submit something.
- meanJim 14y agoFor learning more about JavaScript it was a great read.
- robocat 14y agoNice article. I think you are missing a fifth way to call a function, a property accessor function (although I have never used one, so not certain!). Some mention of how somefunc.bind(someobj) affects the "patterns" might also be worthwhile (although maybe confusing!).