Skip to main content
6 answers
8
Asked 1609 views

How do you go about reading language documentation?

A common piece of advice given to understand and write code is to read the documentation or library. However, when I try to get started, there's a lot of information to get through and I don't know where to navigate to. Another related question is, is it better to read through the documentation to get the gist of the language for example python, or to refer back to whilst writing code?

+25 Karma if successful
From: You
To: Friend
Subject: Career question for you

8

6 answers


2
Updated
Share a link to this answer
Share a link to this answer

Dr’s Answer

Hey Bryan,

Alright, here’s a little laid-back take on tackling language documentation.
Imagine you’re about to binge-watch a new series—you wouldn’t jump straight into the finale, right? Start with the “Getting Started” or tutorial sections to catch the basics. Skim through the intro to get the gist of the language’s vibe (like what’s cool and what’s not). Then, break it down into bite-sized pieces—think variables, loops, and functions as your season 1 episodes.
While you read, don’t just nod along passively. Open up a REPL or a Jupyter Notebook, type out the examples, and even tweak them a bit. It’s like remixing a song—you learn a lot more when you play around with it. If you hit a confusing bit, use the search feature in the docs to find just what you need, instead of wading through pages of text.
Bookmark those parts you find golden so you can quickly jump back when you’re coding and hit a snag. And hey, don’t forget to check out cheat sheets or community tutorials—they’re like bonus content that can make the whole process a lot more enjoyable.

At the end of the day, reading documentation is all about mixing a little structure with some hands-on experimentation. You gotta enjoy the process, and let your curiosity lead the way! All the best Bryan, hope this helped.
2
2
Updated
Share a link to this answer
Share a link to this answer

Teklemuz Ayenew’s Answer

Here are some tips that will help you in navigating documentations easy and efficient:

Start by skimming the Getting Started or Tutorial sections to understand the core concepts and purpose of the language. Focus on key sections like basic syntax, core concepts (variables, loops, functions), and important libraries, breaking them into manageable chunks. Set clear goals for what you want to learn, like I want to understand file handling in Python to stay focused and avoid getting lost.

While reading, don’t just passively absorb examples—type them out, modify them, and experiment to reinforce your understanding. Tools like Jupyter Notebooks or REPL environments are great for this hands-on approach. If you're unsure about specific syntax or functions, use the documentation’s search feature to find exactly what you need, saving you time instead of browsing through multiple pages. Bookmark frequently referenced pages for quick access.

When coding, refer back to the docs to clarify doubts or look up functions. The docs are especially useful for troubleshooting errors—if you encounter a problem, quickly look up the error message or related function to get a solution. Use cheat sheets as quick references for syntax and common functions, so you don't have to open the docs every time.

Once you’re familiar with the basics, explore community resources like tutorials, blog posts, and videos for alternative explanations and practical examples. You can also check out the common mistakes sections of the docs to avoid pitfalls and save time in the long run. Building simple projects or solving coding challenges on LeetCode or HackerRank is good to reinforce what you’ve learned and apply it to real problems.

To take it further, refactor your code after your first implementation. Revisiting your code and applying new techniques from the docs helps deepen your understanding and makes you more efficient in using the language. Pair this with debugging—when you encounter a bug, use it as an opportunity to dive into the docs and learn about the best practices.

Additionally, integrate books or online courses with the official docs to gain a more comprehensive understanding. If you set a study routine—like reading a new section each day and experimenting with it—you’ll steadily build proficiency over time.

Lastly, discussing what you’re learning with others, whether in forums, groups, or social media, can reinforce your knowledge. Explaining concepts or hearing others’ experiences may uncover new insights or methods you hadn’t considered.

By combining documentation with hands-on practice, community insights, and regular study, you’ll be able to learn more efficiently and apply your knowledge more effectively. If you need specific answer, let me know.
Good luck!
Thank you comment icon Thank you, this is really helpful. Bryan
2
1
Updated
Share a link to this answer
Share a link to this answer

Bright’s Answer

Reading documentation can be overwhelming at first, but with the right approach, it becomes a powerful tool for learning and problem-solving. A structured approach to reading language or library documentation includes starting with the basics, using it as a reference while coding, learning to navigate the documentation efficiently, searching effectively using keyboard shortcuts like Ctrl + F, checking the table of contents, and using Google to find specific topics.

For beginners, start with the Getting Started/Introduction section, which provides an overview of syntax and use cases. For more advanced users, start with the Python Official Documentation or their "Getting Started" guide.

When coding, try coding first, look up specific functions/methods when needed, bookmark frequently used sections, and learn to navigate the documentation efficiently. Use the keyboard shortcuts Ctrl + F (Cmd + F on Mac) to quickly find keywords, check the table of contents, or use Google to find specific topics.

Reading full documentation is essential when learning a new language/library from scratch, preparing for an in-depth project, understanding core concepts, or when forgetting syntax or method usage. Use it as a reference when checking best practices or debugging errors.

If documentation feels too technical, watch YouTube tutorials, use interactive websites like W3Schools or Real Python, or check community discussions on Stack Overflow or GitHub Issues. If you need specific documentation recommendations for a language or framework you're working on, feel free to ask.
1
1
Updated
Share a link to this answer
Share a link to this answer

Elliot’s Answer

Hi Bryan,

Documentation is a bit difficult sometimes because it is written to be very efficient, pure, dry and with little explanation. You are being told only what the plain, sterile, cold, hard facts are about the language. There's little illustration or example (sometimes examples are there) and it can be confusing because there's little context around it. It assumes you know what they are talking about and already have enough context to make sense of it all. It can also be a really excellent source of information but only when you are ready to understand it at the level that it is presented - not necessarily for beginners.

What might be helpful is to use documentation ALONG WITH examples, videos, books, other supplemental websites and resources that provide you with that important descriptive examples or tutorials. We need documentation for the precise information offered, but you just need to be up to speed to comprehend it. The other resources I mention can you help you digest documentation better. You'll get there! Good luck!
Thank you comment icon Thank you, Elliot for the advice. Bryan
1
0
Updated
Share a link to this answer
Share a link to this answer

Ashutosh’s Answer

I read the documentation by checking the source code next to it. This helps me see the context in which the documentation was created. Sometimes, this isn't enough, so I try out the examples or use the code to understand things better. Another helpful approach is to see where the documented code might fail or have errors. This shows the limits of what the code can do. Usually, the documentation points these out, but if not, testing things in an IDE, REPL, or online IDE also helps.
0
-1
Updated
Share a link to this answer
Share a link to this answer

Sir’s Answer

I don’t know. Docs can be a mess—most people just check them when things break.
-1