Saturday, 14 September 2013

How does one read JavaScript API like Mongoose

How does one read JavaScript API like Mongoose

I'm a java developer. I really like to learn javascript. I'm finding it
very difficult to pick-up a library and just learn/use it for two reasons:
1) There is no decent auto-complete. I've tried, eclipse, vjet, nodeclipse
and webstorm...each has its own frustrating set of issues. Maybe the
language is such that, autocomplete is super-difficult. 2) The API
documentation is extremely confusing. I guess it is because I'm new to
JavaScript.
For example, I wanted to figure what the callback function in
mongoose.connect method does and how to declare it. So I checked the api
doc. All it says is that the callback is a function...it doesn't say how
many params it takes, what the values of the params are under various
invocation scenarios...etc.
I feel like I'm missing something...
How does one go about reading these docs?

No comments:

Post a Comment