首頁>技術>

每個程式設計師都需要上網檢視一些資料,優秀的程式設計師有一個必備的技能:《search with google》《find in stackoverflow》《copy and paste》

所以有個今天的部落格“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.

資料統計:

如何優雅的使用stackoverflow?來自知乎:http://www.zhihu.com/question/20824615

1、完整讀一遍 FAQ。

2、主觀問題不要問.比如:C++和C哪個好用? 我該學C#還是Java?你最愛哪款Text Editor?必close。

3、概念問題慎重問。比如:STL是啥?C++11有啥新特性?lambda和functor有啥區別?這種問題很容易成為duplicate,導致down vote。提問前要反覆搜尋,確定沒有人問過才能貼。

4、程式碼問題大膽問。提問前要把疑點範圍縮到最小。以C++為例,當你為現有class新增新成員函式時,編譯器報錯。那麼有三個部分務必貼出來。其一,class body 內的相關部分,無關部分在程式碼裡註釋下就行了:// other members,etc。其二,該成員的implementation,包括該成員函式的程式碼和其呼叫的函式的程式碼。其三,編譯器的完整報錯資訊。加好標籤,扔一句“Why? How to fix it?”就OK了。用程式碼說話,可以最大程度上彌補語言不足,而且這種問題不會被vote成duplicate。

5、格式比行文重要!行文是硬功夫,需要日積月累。格式方面就簡單地得多:引用的文字務必用Ctrl+q,程式碼Ctrl+k。多留意rep上k的人的提問,很快就清楚了。

6、善用tag。相關tag儘可能多的加上去,最多可以加5個。無關tag千萬不要加。比如C的問題就不要填C++,C++的問題就不要C的 tag。tag填錯了容易把不相干的人引進來,人家惱了沒準兒就給個down。。一個down vote 扣2rep。

8、提問之後,不要離開電腦。SO的響應速度非常快,馬上會有comment、answer或者編輯建議之類的需要你處理。

9、別忘記accept別人的answer。答主有15rep的加分,題主加2rep。

10、隨時編輯別人的帖子。2000rep之前,只能建議修改,一旦採納,就有2rep的加分。要知道,英語不靈的人太多了,經常出現拼寫錯誤,莫名其妙的格式更是比比皆是。隨時編輯之,順便刷rep。

11、多問幾次,就好了。

12、然後,post your answer吧~

Here’s my twelve-step guide to using SO:

Turn on the computerWait for it to loadLog inWait for it to loadOpen up ChromeClick the "Stack Overflow" thumbnailLook at the list of unanswered questionsClick a few of them with the middle mouse button if they seem interestingRead 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 rockComplain about the sucky ones with the guys on Google WaveWrite a poem to Bill the Lizard in a flag for moderator attentionshare improve this answer

26
最新評論
  • BSA-TRITC(10mg/ml) TRITC-BSA 牛血清白蛋白改性標記羅丹明
  • 匿名結構在golang中的妙用