Exploring standard library sources

How to study open source code, in particular, standard libraries? The code base is often extensive and difficult to navigate. How to find the definition of a function or class?

Am I viewing downloaded source files? Do I need cvs / svn? Maybe a web search? Should I just know the structure of the standard library? Are there any links to it? Or do some IDEs have such features? Or some other tools? How to do it effectively without one? What are the best practices in this regard for any open source libraries? Is there any agreement on how sources are handled on Linux / Unix systems? What are the differences for specific programming languages?

A wide presentation of the topic is welcome. I celebrate this “community wiki," so anyone can rephrase and expand on their awkward language!

Update . This problem is probably not clear enough. I want to see only the source code of a particular class or library function. And the problem is mainly related to the organization of work and ease of use - how can I navigate in a huge pile of sources to find something, maybe there are specific tools or approaches? It seems that for this a solution (s) has long existed.

+3
source share
5 answers

It should be noted that standard libraries are sometimes (often?) Optimized more than good for most production codes.

, .

, .

.

+1

, , , . , - , , .

/ , , . Unix .

0

, .

: .

: , - . , , , , . , , , c , c , . - API. , , - .

, , .

doc-. , , . ( html xml), . . JavaDoc - . Doc JavaDoc.

-, IDE . . . .

( , ).

/ .

0

Java-. Java- . - . , , ArrayList , resizeable Java. .

, , . , , .

0

, :

apt-get source foo

++ ( - ) Eclipse import.

= > ! ! ( F3)

0

Source: https://habr.com/ru/post/1704151/


All Articles