Read the docs is not always sufficient

Most of the time, the documentation is not enough to solve the problem as a software engineering. We need some context, some examples, and some real-world use cases to understand how to use a library, a framework, or a tool.

With the rise of the open-source community, we have access to a lot of libraries, frameworks, and tools, but the documentation is not always sufficient to understand how to use them. That's why I really like to read the open-source code to understand how it works and how to use it.

GitHub advanced search

Basic GitHub code searching

GitHub Code Search is a feature that allows you to search, browse, and understand your code and billions of public code with incredible speed and relevance.

Let's take an example. Here I want to understand how to use the useEffect hook from React. I can search for useEffect on GitHub and I will find a lot of examples of how to use it.

Basic GitHub code searching

Regex GitHub code searching

GitHub Code Search also supports regular expressions. This is a powerful feature that allows you to search for complex patterns in the code.

For example you learn Prisma and you want to understand how to use the findUnique method. You can search for /prisma.*.findUnique/ and you will find a lot of examples of how to use it.

Regex GitHub code searching

Issue filtering

Another cool feature of GitHub Code Search is the ability to search in issues. This is a powerful feature that allows you to search for issues that are related to a specific topic. Also you could contribute to the open-source community by solving some issues.

Issue filtering