How to read the documentation

I'm JS developer with 13 years of professional experience. I'm always happy to teach my craft.
Search for a command to run...

I'm JS developer with 13 years of professional experience. I'm always happy to teach my craft.
很有幫助
Question: Is it a good idea to go through the docs or at least the starter guide as fast as you can, and then start building(sort of like indexing) Is this a fruitful approach? Thanks for the answer in Advance.
Sounds like a good idea! After skimming the text, you will know what you can find there later—this can be helpful later, when you start struggling with some issue.
read the whole article, and I can say this was very interesting, as I was struggling with learning and applying new technology in my domain.
this helps, thanks
I’ve been working in programming for the last 16 years. Let’s see what changes I see in our industry that are enabled by generative AI. Rapid prototyping The last few months, I’ve been working on a set of WordPress plugins, related to event organizat...
Writing unit tests takes time and effort. Nonetheless, many teams insist on writing them anyway—that’s because of the benefits they bring to a project. Those benefits are mainly the following: fast feedback—unit tests speed up each iteration of twea...

Pure functions are the perfect case for unit testing. For a given input, we always expect the same output—there is no internal state involved. Let’s take a look at a few examples and some simple tests that check if the methods work as expected. Jasmi...

Let’s say you have a job interview in a few days. How should you prepare for it so that you can make an informed decision about joining the company, as well as make sure that your interests are taken care of? Prepare your questions An interview is a ...

Creating example projects is a common way of showing your skills to potential employers. Let’s take a look at what’s important to keep in mind when building personal projects with an eye toward impressing prospective employers. Simplicity Building ap...

If you ask questions that one can quickly answer with the documentation, people's reactions will depend on the atmosphere of the place in which you ask, the team you work with, or the online forum. The friendly ones will give you links to where you can find your answers. The less friendly ones will provide you with “RTFM”—Read The cough Friendly Manual— or give you a link to Let Me Google That For You.
You should try avoiding that.
Let’s see how you can develop the skill of reading documentation!
Most importantly, just start trying to get your answers from the documentation as you struggle with things. The most significant advantage of reading the documentation is that you’ll often find your answer there. You just need to dive into it and find it on your own. As you progress in your career, you will find more and more problems, there is no ready-to-follow tutorial.
Most documentation is relatively dry and meant to provide answers, and it’s not necessarily engaging to read. It’s much easier to focus on it while looking for a solution to a problem.
I hate reading documentation to learn about the project. It doesn’t matter if it’s a new project I’m starting on or a library I’m learning about. It feels like a waste of time because I have no context, and it’s difficult to understand the connections between the things I’m reading about.
Instead, I would try doing something on my own, fail, and come back to the documentation looking for an answer. In that case, I at least know what I don’t know, and I’m keen on bridging the gaps.

You can use search tools to quickly get to the relevant information when you have a problem to fix.
In the case of third-party libraries, you can utilize search engines to limit the search to the project website by adding site:<domain>:

It works the same using Google, Bing, and DuckDuckGo.
For in-code documentation, you can use the same tools you use for searching through the codebase:
ripgrepgit grepAn example with git grep:
$ git grep 'http\.post'
src/auto/injector.js: * $http.post(trackingUrl, trackedEvents);
src/ng/http.js: * $http.post('/someUrl', data, config).then(successCallback, errorCallback);
src/ng/http.js: * - {@link ng.$http#post $http.post}
Searching through the doc has a few benefits:

API reference - dry description of methods

Tutorial or guide—it provides more context.
Documentation quality varies a lot. Often it’s not a very accessible document. It could be that there is an assumption that a reader has some system knowledge, and it’s not explicitly stated in the text. This leaves the newcomers a bit lost.
The most problematic can be closed-source, commercial projects. If you have a small team maintaining both the codebase and its documentation, it can be months between any new set of eyes going through the docs and trying to make sense of it.
Open-source projects are usually slightly better. The ones without good documentation are less likely to succeed.
If the project provides a tutorial or guide, it can be a good idea to check it out. If you struggle with a similar issue often, just find a part of the guide that covers it and go through it. A well-done guide will provide you with the context needed to understand the mechanism you are using entirely.

API description is the most technical documentation. Usually, it’s pretty dry and lacks a good overview of the context in which you can use a given method. It shows you all the classes, methods, arguments, and outputs that you have at your disposal.

When available, go through different descriptions of the same or similar things. Often one method is to reference some other—so if you are still lost after reading about the first, then you can check whether the documentation of others makes it any clearer.
With methods, you will either have a change in the internal state of an object or get some output. The API guide should describe both pretty well.
Often, methods accept the inputs in many combinations of arguments. The docs will show you all the options to get in all the stuff you need.
Reading documentation is an important skill and one you can only learn by practicing. Don’t get discouraged as you struggle with your first attempts; it gets better with time.