DEV Community

Cover image for The most underrated search engine...
Savvas Stephanides
Savvas Stephanides

Posted on

7

The most underrated search engine...

Picture this:

You're adding a new feature to your project. Because you don't want to reinvent the wheel, you discover a library you've never heard of that does exactly what you need.

Let's suppose for example that you want to send a request to an API go get some data in your NodeJS app. So you discover a library called axios. You find out that to make a call to the API, you need to use the axios.get() function.

So you read through the docs and see a couple of good examples. But what have other people use that function for? What are some real world examples of the axios.get() function?

For this exact thing, there's a search engine you've probably seen before, but never used.

It's right there, at the top of your window, as soon as you go to Github!

Using Github Search

Suppose you want to see some real world examples of people using the get() function of axios. All you have to do is go to Github, log in and use the search bar to search.

Alternatively, you can go to the new Github CodeSearch page.

Now start typing your piece of code you'd like to look examples of (quotes might help). In our case, our search query would be:

"axios.get("
Enter fullscreen mode Exit fullscreen mode

You'll see a bunch of results of other people's codes who have been kind enough to post their code for the public to see and learn from:

So if you are facing difficulties using a specific function you haven't used before, or the documentation for that function isn't really good (or non-existent) Github CodeSearch can be a lifesaving tool.

I know I've used this a ton of times and it has saved me hours of googling and getting nowhere.

Let me know what you think! Thanks for reading! πŸ”₯

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

nextjs tutorial video

Youtube Tutorial Series πŸ“Ί

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series πŸ‘€

Watch the Youtube series

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay