Official account:MarkerHub, website: https://markerhub.com
Author: Jue Fei
Source: juejin.im/post/5e3d01c56fb9a07c91100801? Heading-5
Many small partners often have this kind of confusion. I read a lot of technical learning documents, books, and even videos, and I wanted to practice them. So I opened GitHub to find an open source project to learn and gain practical experience. At this time, many small partners will face such a problem: “I can’t search, how can I find it?”, In the end, we have to give up.
In this article, the editor teaches you to search for items accurately in GitHub.
Components of open source projects
Before we make it clear, let’s first understand the components of an open source project
- Name: project name
- Description: a brief description of the project
- Source code of the project
- Readme.md: introduction to project details
In addition to these elements, the number of stars and forks of the project itself is also a criterion to judge whether an open source project is hot or not, which is also a very important search criterion. In addition, we should also pay attention to the latest update date of the project, because the more active the project is, the more frequent the update date is.
The above elements are some key points we should pay attention to when we search.
How to search
So how do we search?
Suppose we want to search react now. I believe most of our little friends directly type “react” in the search box, and then as soon as you enter, you will find that the situation is like this:
Search results will show a lot of open source projects, it makes you overwhelmed, unable to start, many small partners to find this step to give up, because there are too many projects, simply can not find how to find their own interested in open source projects, so this search is very inaccurate. So let’s learn a slightly more accurate search method.
Search by name
The search item name contains react items:
The results are as follows
As you can see, these search results are all items with the “react” keyword in the item name, but the number of items is still large.
Now let’s restrain ourselves
For example, I can get the number of stars more than 5000 +:
in:name React stars:>5000
The result is this:
The search results are much more accurate in an instant. Now there are only 114 items to choose from. Of course, we usually don’t set the star number so high. Generally, it’s about 1000.
Similarly, we can search by the number of forks:
in:name React stars:>5000 forks:>3000
You will find that the results are more and more accurate!
Search according to readme
Search readme.md for items containing react:
There are so many results. Let’s limit the star number and fork number
in:readme React stars:>3000 forks:>3000
All of a sudden, the search results are accurate to 90. At this time, it will be much easier for you to choose projects.
Search by descriptin
Suppose we want to learn about microservice items now. We search the item description for microservice items
There are so many results. Let’s add some screening conditions
in:description Microservice language:python
Language: Python means that we limit the language to python. Let’s see how it turns out
The search results are much more accurate.
If in these projects, we want to find the latest updated project, which means that the update time is the latest, we can do this:
in:description Microservice language:python pushed:>2020-01-01
Pushed: > 2020-01-01 means that we limit the final update time of the project to 2020-01-01
There are only 8 search results. These items belong to the more active items, which will not be tangled any more.
OK, let’s summarize. We want to conduct accurate search, nothing more than to increase the screening criteria.
- In: name XXX / / search by item name
- In: readme XXX / / search by Readme
- In: description XXX / / search by description
In this case, we can add screening conditions
- Stars: > XXX / / the number of stars is greater than XXX
- Forks: > 3000 / / the number of forks is greater than XXX
- Language: XXX / / the programming language is XXX
- Pushed: > yyyy-mm-dd / / last update time is longer than yyyy-mm-dd
The above are some tips for us to accurately search for items on GitHub, hoping to help you!
Great! This Java website has all kinds of projects! https://markerhub.com
The up Master of the B station, Java is really good!
Great! The latest version of Java programming ideas can be seen online!