Often Software Developers are also called Professional Googlers. This means that we need to be really proficient in it. So this thread will provide you with tips and tricks which help you to become #10xengineer in Googling. Let's start ➡️➡️➡️
1. Use quotes for "exact match" searches. Often when you search for a particular error message try searching with quotes first to get your results faster. Very helpful when you need to understand error or warning messages in logs.
2. Use '*' in as a wildcard. Use case: when searching for errors messages replace parts specific to your code(folder or package names). Also helpful you want to find a song, but remember only some words then replace the unknown part with '*'. 🎶
3. You can limit your search to include some numerical ranges by specifying range like '2010..2015.
4. Use a hyphen '-' to exclude results containing a specific word(s). For example, compare results for 'best programming language' and 'best programming language -python'.
5. Due to the above feature, you can get unexpected results when googling for the meaning of some CLI arguments. E.g. when you search for an explanation of 'javac -encoding' google will actually exclude pages relevant for you. Check these 2 results:
6. Use "site:" to limit results to single sile. You know that all questions are already answered on "site: http://stackoverflow.com ", but JPA specific topics are covered on "site: http://vladmihalcea.com " by @vlad_mihalcea. Limit your search to it.
7. Use "intitle:" for a single word and "allintitle:" for all words to search in titles only. When you remember the title of the page, but can't really find it try limiting the search to titles only.
8. Use "filetype:" to search in files with a specific extension. E.g. you want to find a
Quicksort implementation in #Java or comparison of sort algorithms in PDF format. More about Filetypes: https://en.wikipedia.org/wiki/List_of_filename_extensions
9. Use 'Tools' for filtering results. Tech is moving so fast and especially @springboot, so you want to avoid reading outdated text and only get fresh info. click Tools -> And select max-age or even custom date range for your search results, e.g. 'Past Year'.
10. "inurl:" and "allurl:" to search in URL string only. Use case: Find sites using a particular script by URL patterns. Really often used by black hats to find sites vulnerable for certain exploits. E.g. sites using @WordPress 'inurl:/wp-login/'
11. "cache:url" to find google cached version of the page. Use case: page is not available, banned for some stupid reasons by corporate IT or edited, but you want to find content it had before. +Helps when the page is slow. Example search term: 'cache: https://www.baeldung.com/register-servlet'
12. All these ⬆️ magic tricks are stackable, which means that you can use them together in almost any combination. Several not really trivial examples posted below.
12.1 You use @springframework, but not @springboot and you want to find an article about how to configure Datasource. You need an article and not a @StackOverflow thread. Your search term: 'Spring -Boot how to configure Datasource -site: http://stackoverflow.com '
12.2 '*' can replace one or more words in any part of the search term. E.g. to find the article about LazyInitializationException written by @thjanssen123 on his site, but don't remember site domain. Then use the following term: 'LazyInitializationException site:thorben-*.com'
13. (parentheses). Putting part of the search term in between parentheses groups it away from the rest of your query. It's really similar to how we use them in our programmer's world.
14. OR operator between search term parts. Use case: you are searching for some JPA topic, but want to limit to best sources for this topic ever: @vlad_mihalcea and @baeldung. Use OR and parentheses: 'JPA onetomany (site: http://vladmihalcea.com  OR site: http://baeldung.com )'
15. Now "instant search" features, when google returns info right in search result page:
'define:' - get the definition of any word
'weather:' - weather by city, country, postal code
'stocks:' - stock’s share price, its recent trend, graph
'movie:' - all possible movie info
16. Everybody knows that Google allows searching for Images in the special tab. But do you know that image can be used as a search term? Just switch to Image search and upload your image. Use case: find the name of some masterpiece picture or same pic but in different resolution.
You can follow @xpvit.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled: