每一個(gè)程序員都需要上網(wǎng)查看1些資料,優(yōu)秀的程序員有1個(gè)必備的技能:
《search with google》
《find in stackoverflow》
《copy and paste》
所以有個(gè)今天的博客“Why we need StackOverFlow?”
StackOverFlow歷史:
始建于2008年,by Jeff Atwood 和 Joel Spolsky
名字由來:
The name for the website was chosen by voting in April 2008 by readers of Coding Horror, Atwood’s popular programming blog.
數(shù)據(jù)統(tǒng)計(jì):
如何優(yōu)雅的使用stackoverflow?
來自知乎:
http://www.zhihu.com/question/20824615
1、完全讀1遍 FAQ。
2、主觀問題不要問.
比如:
C++和C哪一個(gè)好用? 我該學(xué)C#還是Java?你最愛哪款Text Editor?
必close。
3、概念問題慎重問。
比如:
STL是啥?C++11有啥新特性?lambda和functor有啥區(qū)分?
這類問題很容易成為duplicate,致使down vote。發(fā)問前要反復(fù)搜索,肯定沒有人問過才能貼。
4、代碼問題大膽問。
發(fā)問前要把疑點(diǎn)范圍縮到最小。以C++為例,當(dāng)你為現(xiàn)有class添加新成員函數(shù)時(shí),編譯器報(bào)錯(cuò)。那末有3個(gè)部份務(wù)必貼出來。
其1,class body 內(nèi)的相干部份,無關(guān)部份在代碼里注釋下就好了:
// other members,etc。
其2,該成員的implementation,包括該成員函數(shù)的代碼和其調(diào)用的函數(shù)的代碼。
其3,編譯器的完全報(bào)錯(cuò)信息。
加好標(biāo)簽,扔1句
“Why? How to fix it?”
就OK了。
用代碼說話,可以最大程度上彌補(bǔ)語言不足,而且這類問題不會(huì)被vote成duplicate。
5、格式比行文重要!
行文是硬工夫,需要日積月累。格式方面就簡單地很多:援用的文字務(wù)必用Ctrl+q,代碼Ctrl+k。多留意rep上k的人的發(fā)問,很快就清楚了。
6、善用tag。
相干tag盡量多的加上去,最多可以加5個(gè)。無關(guān)tag千萬不要加。比如C的問題就不要填C++,C++的問題就不要C的 tag。tag填錯(cuò)了容易把不相干的人引進(jìn)來,人家惱了沒準(zhǔn)兒就給個(gè)down。。1個(gè)down vote 扣2rep。
7、不要說“thank you!”。
SO反對(duì)沒有討論價(jià)值的comments。心存感激,就up 他的answer或comment。
實(shí)在想扯淡就開個(gè)chat room。100rep就能夠開chat room了。
8、發(fā)問以后,不要離開電腦。
SO的響應(yīng)速度非常快,馬上會(huì)有comment、answer或編輯建議之類的需要你處理。
9、別忘記accept他人的answer。
答主有15rep的加分,題主加2rep。
10、隨時(shí)編輯他人的帖子。
2000rep之前,只能建議修改,1旦采用,就有2rep的加分。
要知道,英語不靈的人太多了,常常出現(xiàn)拼寫毛病,稀里糊涂的格式更是比比皆是。隨時(shí)編輯之,順便刷rep。
11、多問幾次,就行了。
12、然后,post your answer吧~
13、若仍沒信心的話,可以聯(lián)系我。
可以代貼,或討論1下語言如何組織。
Here’s my twelve-step guide to using SO:
Turn on the computer
Wait for it to load
Log in
Wait for it to load
Open up Chrome
Click the "Stack Overflow" thumbnail
Look at the list of unanswered questions
Click a few of them with the middle mouse button if they seem interesting
Read them in order. Some will suck, some will be decent; occasionally one has learnable information in it: this is the information that is to be learned!
Downvote things that suck, upvote things that rock
Complain about the sucky ones with the guys on Google Wave
Write a poem to Bill the Lizard in a flag for moderator attention
share improve this answer