Click here to Skip to main content
15,885,953 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi all, I am only just starting out learning to code, but I realise that there will be plenty of times where I want to google some syntax and see a reference for how to implement a feature etc.

I'm just wondering if there are any well known tips other than going in to google and smashing something in e.g. "how to make a for loop in C". Are there websites you tend to go to first, and do you do an additional website specific search on those (e.g. this website, stack overflow).

If you can't find an answer, do you tend to create questions on these sites?

Lastly, if I am making a question, what is the best way to copy and paste code so that it is nice and readable?

Thanks all!

What I have tried:

Searching blindly into google basically...
Posted
Updated 27-Jul-17 1:14am

For basic questions such as "how to make a for loop in C" then pretty much that is what you need to type. I'd leave out the English and just go for "C for loop": C for loop - Google Search[^] which will get you the same results.

For basic stuff, it doesn't matter much which site you go to, but for libraries go here: Reference - C++ Reference[^] - it covers C as well as C++ - and remember: you can set a specific site for searching with "site:" like this: "formatting datetime site:codeproject.com" which returns values only from that specific site: formatting datetime site:codeproject.com - Google Search[^]

Basically, practice your general Google-fu! This gives some useful tips: How to become an Ascended Master of Google-fu... - Cipher Mysteries[^]
 
Share this answer
 
Select some often used resources and bookmark the links:

The reference pages for the used language (e.g. cppreference.com[^] or Reference - C++ Reference[^] for C/C++).

The reference pages for used APIs (Application Program Interfaces) and third party DLLs. Like MSDN with Windows, or Qt. When using Visual Studio, you already have quick references by pressing F1 when on an API function.

These reference pages usually provide example code which should be sufficient to answer most questions. If not, try to search the web. If that does not help, ask here or elsewhere. Last resort is contacting product support or authors of used source code.

When beginning with something new, start looking for tutorials or introductions about the topic.

As already mentioned by others, searching the web and asking is a skill. The useability of search results is related to good matching search terms and the quality of answers is related to the quality of your questions.

For questions here at CP there is a FAQ: Code Project Quick Answers FAQ[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900