搜索编程相关问题的最佳提示/技巧/黑客是什么? [英] What are the best tips / tricks / hacks for searching for programming related questions?

查看:75
本文介绍了搜索编程相关问题的最佳提示/技巧/黑客是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我刚刚开始学习编码,但我意识到有很多次我想谷歌一些语法,并看到如何实现功能的参考等。



我只是想知道是否有任何众所周知的提示,除了进入谷歌和粉碎一些东西,例如如何在C中制作for循环。您是否有首先访问的网站,并且您在这些网站上进行了额外的网站搜索(例如本网站,堆栈溢出)。



如果可以'找到答案,你是否倾向于在这些网站上创建问题?



最后,如果我提出问题,复制和粘贴代码的最佳方法是什么这是好看又可读的吗?



全部谢谢!



我试过的:



盲目搜索google ...

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...

推荐答案

对于基本问题作为如何在C中制作for循环然后几乎就是你需要键入的东西。我会省略英语,只是去C for loop: C for loop - Google搜索 [ ^ 这将得到相同的结果。



对于基本的东西,你去哪个网站并不重要,但对于图书馆来说:参考 - C ++参考 [ ^ ] - 它涵盖了C和C ++ - 并且记住:您可以使用site:设置要搜索的特定网站,如下所示:format datetime site:codeproject.com,它返回仅来自该特定网站的值:格式化日期时间网站:codeproject.com - Google搜索 [ ^ ]



基本上,练习你的将军谷歌福!这提供了一些有用的提示:如何成为升天大师Google-fu ... - Cipher Mysteries [ ^ ]
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[^]


选择一些常用资源并为链接添加书签:



使用语言的参考页面(例如 cppreference.com [ ^ ]或参考 - C ++参考 [ ^ ] for C / C ++)。



使用的API(应用程序接口)和第三方DLL的参考页面。像MSDN与Windows,或Qt。使用Visual Studio时,在API函数上按F1时已经有了快速参考。



这些参考页面通常提供示例代码,足以回答大多数问题。如果没有,请尝试搜索网络。如果这没有帮助,请在这里或其他地方询问。最后一种方法是联系产品支持或使用过的源代码的作者。



从新的东西开始,开始寻找有关该主题的教程或介绍。



正如其他人已经提到的那样,在网上搜索并询问是一种技巧。搜索结果的可用性与良好匹配的搜索术语有关,答案的质量与您的问题质量有关。



如果您在CP上有问题,那么常见问题:代码项目快速解答常见问题解答 [ ^ ]。
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[^].


这是一个包含大量示例和在线开发环境的教程网站: UPSC的文本和视频教程,公务员,银行,能力,问题,答案,解释,面试,入学,考试,解决方案,范例,在线,测验,时事2017,能力测试,言语能力,一般知识,推理,模拟测试,Kubernetes,Spring JDBC,Java并发,Spring AOP,Gerrit,Spring MVC,印度政治,历史,地理,生物,物理,化学与经济 [ ^ ]



对于与网络相关的内容: W3Schools在线网络教程 [ ^ ]



另外 GitHub 是寻找源代码的好地方:世界领先的软件开发平台·GitHub [ ^ ]
Here is tutorial site with a plethora of examples and online development environments: Text and Video Tutorials for UPSC, Civil Services, Banking, Aptitude, Questions, Answers, Explanation, Interview, Entrance, Exams, Solutions, Examples, Online, Quiz, Current Affairs 2017, Aptitude Test, Verbal Ability, General Knowledge, Reasoning, Mock test, Kubernetes, Spring JDBC, Java Concurrency, Spring AOP, Gerrit, Spring MVC, Indian Polity, History, Geography, Biology, Physics, Chemistry and Economy[^]

For web related stuff: W3Schools Online Web Tutorials[^]

Also GitHub is a good place to look for source code: The world's leading software development platform · GitHub[^]


这篇关于搜索编程相关问题的最佳提示/技巧/黑客是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆