如何在開源社區貢獻代碼
Matt Mullenweg, founder of Automattic, recently offered this advice to aspiring developers: “Contribute to open source.”
Automattic的創始人Matt Mullenweg最近向有抱負的開發人員提供了以下建議 :“ 致力于開源。 ”
Mullenweg — a political science dropout whose software (Wordpress) now powers nearly a quarter of all websites — says that you can “100% compensate for a lack of professional experience” by proving your abilities through open source contributions.
Mullenweg是一個政治學輟學者,其軟件(Wordpress)現在可為所有網站的近四分之一提供支持。他說,您可以通過開源貢獻來證明自己的能力,以“ 100%彌補專業經驗的不足”。
If you can grow into a recognized position in an open source project, that puts you ten steps ahead of applications even from folks with 20 years experience in the field, at least to an Open Source-biased company like Automattic.
如果您可以在開放源代碼項目中成長為公認的職位,那么即使您是在具有20年該領域經驗的人員中,也至少比在像Automattic這樣的受開放源代碼歧視的公司中,您都領先于應用程序十步。
And the undisputed center of the open source universe is GitHub. Some people have gone so far as to say that GitHub accounts have replaced resumes.
開源世界無可爭議的中心是GitHub。 有人甚至說GitHub帳戶已取代履歷表 。
Or as John Resig, the creator of jQuery, quipped: “When it comes to hiring, I’ll take a GitHub commit log over a resume any day.”
或就像jQuery的創建者John Resig所打趣的那樣:“在招聘方面,我每天都會把GitHub提交日志作為簡歷。”
Free Code Camp Wiki maintainer Rafael Rodriguez has come up with an way that you can start contributing to open source in just a few minutes, without even leaving GitHub’s website.
Free Code Camp Wiki的維護者Rafael Rodriguez提出了一種方法,您可以在短短幾分鐘內就開始為開源做貢獻,而無需離開GitHub的網站。
在Free Code Camp的Wiki上添加文章 (Adding an article to Free Code Camp’s Wiki)
Free Code Camp’s wiki is filled with articles about technology. Where as academic articles aim to be detailed, and technical documentation aims to be precise, our wiki articles aim to be easily understood by new developers.
Free Code Camp的Wiki上充斥著有關技術的文章。 當學術文章的目的是詳細而技術文檔的目的是精確時,我們的Wiki文章的目的是使新開發人員容易理解。
Here are some examples of things you can write about on our wiki:
以下是您可以在我們的Wiki上寫的一些事例:
- a new JavaScript library like Redux 像Redux這樣的新JavaScript庫
an important person in the software world, like Dan Abramov
軟件界的重要人物,例如Dan Abramov
- how to deploy a Wordpress e-commerce site 如何部署Wordpress電子商務網站
- how to install Ruby on Rails on Windows 如何在Windows上安裝Ruby on Rails
- how to wire a Raspberry Pi into a thermostat 如何將Raspberry Pi連接到恒溫器
- the history of Git Git的歷史
- your city’s Women Who Code chapter 您城市的《女性密碼》一章
Basically, anything related to technology is fair game. We will err on the side of inclusion.
基本上,任何與技術有關的東西都是公平的游戲。 我們會在包容性方面犯錯。
First, check to make sure the article doesn’t already exist (if it does, you can help us expand it.)
首先,檢查以確保文章不存在 (如果存在 ,則可以幫助我們擴展它。)
And if you can’t think of anything off the top of your head, you can choose a topic from our article requests and write a few paragraphs about it.
而且,如果您想不起什么,您可以從我們的文章請求中選擇一個主題,并撰寫一些有關該主題的段落。
We also welcome translations of existing articles into any world language.
我們也歡迎將現有文章翻譯成任何世界語言。
Then you can contribute in by following these steps:
然后,您可以按照以下步驟進行操作:
Go to Free Code Camp’s open source Wiki repository. (If you don’t have a GitHub account yet, you can create one in about 2 minutes.)
轉到Free Code Camp的開源Wiki資源庫 。 (如果您還沒有GitHub帳戶,則可以在大約2分鐘內創建一個 。)
- Click the “New File” button. This will automatically create a fork (your own personal copy) of the repository. 點擊“新建文件”按鈕。 這將自動創建存儲庫的fork(您自己的個人副本)。
- Name your file “your-wiki-article-name.md” (the “md” stands for Markdown, a popular alternative to plain .txt files). 將您的文件命名為“ your-wiki-article-name.md”(“ md”代表Markdown,這是普通.txt文件的替代名稱)。
Type out your article. If you’re unfamiliar with Markdown, you can write your article here, then copy and paste it onto GitHub.
輸入您的文章。 如果您不熟悉Markdown,可以在此處撰寫文章 ,然后將其復制并粘貼到GitHub上。
- Scroll down and fill in a commit message (for example, “Create wiki article about the Minimax algorithm”) and optionally add a description. If you’re writing this article in response to an article request, you should reference it in the description like so: “Closes issue #177.” 向下滾動并填寫提交消息(例如,“創建有關Minimax算法的Wiki文章”),并可以選擇添加描述。 如果您是根據文章要求寫這篇文章的,則應在說明中引用它,例如:“關閉問題#177”。
- Click “Propose new file.” 點擊“建議新文件”。
- Click “Create pull request.” 點擊“創建請求請求”。
- Your pull request will already be populated from your commit message and description. So click “Create pull request” again to finalize it. 您的提取請求將已經從您的提交消息和描述中填充。 因此,再次單擊“創建請求請求”以完成該請求。
Voilà! You have created a file, a commit, and a pull request (and maybe even closed an issue in the process)!
瞧! 您已經創建了一個文件,一個提交和一個請求請求(甚至可能關閉了該過程中的一個問題)!
Raphael or another volunteer will review your pull request and may ask you to make some further improvements to your article. (In some situations, you may need clone the repository locally to squash commits or resolve merge conflicts — we’ll help you with this if it comes up.)
拉斐爾(Raphael)或其他志愿者將審核您的拉取請求,并可能要求您對您的文章進行進一步的改進。 (在某些情況下,您可能需要在本地克隆存儲庫以壓縮提交或解決合并沖突-如果出現這種情況,我們將為您提供幫助。)
If you have questions about any of this, hop on over to our Wiki chat room and ask.
如果您對此有任何疑問,請跳至我們的Wiki聊天室并提問。
Once they accept your pull request, GitHub will merge it into Free Code Camp’s Wiki repo, and it will look something like this:
一旦他們接受了您的拉取請求,GitHub將把它合并到Free Code Camp的Wiki存儲庫中,看起來像這樣:
Once your pull request is accepted, you can check your GitHub profile. See that green square on your heat map calendar, and that streak? You’ve made an open source contribution!
接受拉取請求后,您可以檢查GitHub個人資料。 看到您的熱圖日歷上的綠色方塊和條紋嗎? 您已經做出了開源貢獻!
這是有意義的事情的開始。 (This is the beginning of something meaningful.)
Contributing to our wiki is a good way to ease into open source.
對我們的Wiki進行貢獻是輕松進入開源的好方法。
After writing a few wiki articles (and making edits to existing articles), you’ll want to venture out and see what other projects you can help with.
在寫了幾篇Wiki文章(并對現有文章進行編輯)之后,您將需要嘗試一下,看看還有哪些其他項目可以幫助您。
You won’t be able to contribute to most of these projects without leaving the relative comfort of your browser and GitHub’s website. But don’t be intimidated by the process of developing on your local computer — it’s not that hard.
不離開瀏覽器和GitHub網站的相對舒適度,您將無法為大多數這些項目做出貢獻。 但是不要被本地計算機上的開發過程所嚇倒, 這并不難 。
As you contribute to larger and larger projects, you’ll get better at learning codebases well enough to track down bugs and add functionality.
隨著您為越來越大的項目做出貢獻,您將更好地學習代碼庫,從而更好地跟蹤錯誤并添加功能。
That’s how you learn. That’s how you grow as a developer. And that’s how you prove to future employers that you can collaborate with other people and write code that’s worth using.
那就是你學習的方式。 這就是您成長為開發人員的方式。 這就是您向未來的雇主證明您可以與其他人合作并編寫值得使用的代碼的方式。
If you liked this, click the? below. Follow me and Free Code Camp for more articles on technology.
如果您喜歡這個,請點擊? 下面。 關注我和免費代碼營,獲取更多有關技術的文章。
翻譯自: https://www.freecodecamp.org/news/how-to-land-your-first-open-source-contribution-from-your-browser-in-15-minutes-756d9bbf81ad/
如何在開源社區貢獻代碼