<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="http://www.r-bloggers.com/giving-back-with-code/"></div></div><div><a data-url="http://www.r-bloggers.com/giving-back-with-code/" data-counturl="http://www.r-bloggers.com/giving-back-with-code/" data-count="horizontal" data-text="Giving back with code" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://itsalocke.com/giving-back-code/"> R – It's a Locke</a></strong>, and kindly contributed to <a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers)</a> </div>
<div class="twitter-share"><a target="_blank" class="twitter-share-button" data-size="large" href="https://twitter.com/intent/tweet?url=http%3A%2F%2Fitsalocke.com%2Fgiving-back-code%2F&via=stefflocke&%23038;related=stefflocke%3ASteph">Tweet</a></div>
<div></div>
<p>From code in answers on Stack Overflow to R packages or full programs, there’s a lot of code being written and given away. This post examines some of the reasons why the people writing all that code do it, why you should consider giving back with code, and how you can get started. Finally, I cap it all off with perspectives from some of my favourite coders!</p>
<ul>
<li><a target="_blank" href="http://itsalocke.com/giving-back-code/#reasons">Because reasons</a></li>
<li><a target="_blank" href="http://itsalocke.com/giving-back-code/#getstarted">Get started</a></li>
<li><a target="_blank" href="http://itsalocke.com/giving-back-code/#perspectives">Perspectives</a></li>
</ul>
<h2>Because reasons</h2>
<p>There are many reasons why you should consider writing code and making it available for public consumption.</p>
<h3>Altruistic</h3>
<ul>
<li>If you’re writing something to achieve a task, odds are someone else would have to write the same code – why not help them out?</li>
<li>You’re using a lot of open source software, whether you realise it or not. By open sourcing your code, you get to pay it forward</li>
<li>To give others something to contribute to</li>
</ul>
<h3>Career</h3>
<ul>
<li>Unknown quantities are risky hires, put your code out there for the world to see and employers get to see what you can do</li>
<li>Develop your skills for the next job, the one that requires you to be more skilled in something than you are now</li>
<li>You get to interact with a lot of different people who you build credibility with, and hopefully friendships!a</li>
</ul>
<h3>For oneself</h3>
<ul>
<li>Generally speaking, the more code you write, the better your coding skills so if you want to improve your skills this is an ideal way to do it</li>
<li>For the sheer fun of doing cool stuff, especially if you don’t get to do cool stuff in the day job</li>
<li>To do it “the way it should be done”</li>
</ul>
<p><span></span></p>
<h2>Get Started</h2>
<h3>Forums</h3>
<p>An easy place to get started is a forum, like <a target="_blank" href="http://stackoverflow.com/">StackOverflow</a>.</p>
<p>The very first place you be looking to write code is in some questions – producing a minimum reproducible example is an ideal start. Not least because, if you’re anything like me, the act of <a target="_blank" href="http://stackoverflow.com/help/how-to-ask">asking a question properly</a> will usually provide you with the answer before you even post.</p>
<p>The next step is to start answering questions. Learn <a target="_blank" href="https://codeblog.jonskeet.uk/2009/02/17/answering-technical-questions-helpfully/">how to write an effective answer</a>, then <a target="_blank" href="http://stackoverflow.com/help/interesting-topics">pick your area</a>, and start providing some answers.</p>
<h3>Your own projects</h3>
<p>This section is wide open. Want to share a brief script you wrote that automates the Friday bacon run? Make it a public <a target="_blank" href="https://gist.github.com/">gist</a>.</p>
<p>Want to write something a little longer? Then a full <a target="_blank" href="https://github.com/">GitHub</a> repository is the way forward. GitHub is the de facto site for building software transparently. As well as using <a target="_blank" href="http://stephlocke.github.io/Rtraining/sourcecontrol.html">git source control</a>, the issue system is fantastic, you can have a wiki, you can host a website for the docs, and all for free.</p>
<h3>Other people’s projects</h3>
<p>If there’s an open source bit of software you use, perhaps you can contribute to it? Alternatively, if you’re looking for places to start check out places like <a target="_blank" href="http://up-for-grabs.net/#/">Up for Grabs</a> and <a target="_blank" href="https://www.codetriage.com/">CodeTriage</a>.</p>
<h3>Scared to put code out there?</h3>
<p>Code isn’t the only way of giving back. Why not contribute in some other way? Write a blog post explaining how something works, improve someone’s documentation, act as first line support on projects to make sure people give all the right info to help the developers, donate some money, the list goes on.</p>
<figure class="wp-caption"><a target="_blank" href="https://dontbeadickday.com/"><img alt="Don't be a dick!" src="http://i1.wp.com/dontbeadickday.com/wil_says____by_nastylittlethought-d4uou4w.jpeg?resize=200%2C350&ssl=1" data-recalc-dims="1"></a><br>
<figcaption class="wp-caption-text">Don’t be a dick!</figcaption>
</figure>
<p>There’s a risk people may be mean on the internet – not everyone follows Wheaton’s rule alas! So if you’re worried about your code, ask someone to review it, maybe get someone to hold your hand through your first pull request. There’s plenty of us who’ll give you a hand, and there are some neat networks like <a target="_blank" href="http://www.codenewbie.org/">CodeNewbie</a> and <a target="_blank" href="http://learnprogramming.github.io/">LearnProgramming Mentoring Community</a> who can help support you too.</p>
<h2>Perspectives</h2>
<p>See what some great code contributors think and/or check out Scott Hanselman on <a target="_blank" href="https://channel9.msdn.com/Events/Build/2016/T613">Getting Started in Open Source</a>.</p>
<h3>Ed Elliot</h3>
<p><a target="_blank" href="https://twitter.com/eddebug"><img alt="Ed Elliot" src="http://i2.wp.com/pbs.twimg.com/profile_images/534827912713629696/gKeK9kCN.png?resize=213%2C213&ssl=1" data-recalc-dims="1"></a>Ed writes code to help people develop databases in a more code-driven fashion; he’s helping us ship better databases. As well as a <a target="_blank" href="https://github.com/GoEddie">lot of code</a>, he presents a heck of a lot, and you can find him blogging at <a target="_blank" href="https://agilesql.club/">agilesql.club</a></p>
<blockquote><p>
There are three main reasons that I contribute code to the community. Firstly, I learn more by letting other people use the code I write when they give feedback. If I write something and it sits forever on a USB drive then I don’t learn what edge (or sometimes not so edge) cases I have missed. I lose out on the opportunity to learn and improve. Secondly, I use open source tools and feel that if I have benefited from work (often a lot of hard work, take Linux as an example) then maybe someone else will benefit from something I have written. Finally, the third reason is the people, I have met and interacted with people that I would never have without sharing code.
</p>
</blockquote>
<h3>Chrissy LeMaire</h3>
<p><a target="_blank" href="https://twitter.com/cl"><img alt="Chrissy LeMaire" src="http://i2.wp.com/media.licdn.com/media/AAEAAQAAAAAAAAUaAAAAJGMwYWI1ODk5LTQwNmQtNDk5Mi1hYzM5LTQwZDk5YmUxM2ExOQ.jpg?resize=213%2C213&ssl=1" data-recalc-dims="1"></a> Chrissy is helping DBAs have more time to eat cakes. In seriousness, Chrissy codes and develops the community around <a target="_blank" href="https://dbatools.io/">dbatools.io</a>, a PowerShell module for primarily aimed at helping DBAs migrate their SQL Servers in record time and safety. Check out <a target="_blank" href="https://dbatools.io/new-best-practices-commands-now-available/">today’s announcement</a> about how it’s helping people work within best practices. She <a target="_blank" href="https://blog.netnerds.net/author/chrissy/">blogs</a>, presents around the world, and also finds time to do cool things like this <a target="_blank" href="https://sqlps.io/slack/">SQL Server Slack channel</a>.</p>
<blockquote><p>
I give away code because it never occurred to me not to. I grew up using (and learning from) code from websites like 4GuysFromRolla.com and freshmeat.net, and I always felt eager to return the favor.</p>
<p> I also really enjoy the goodwill that sharing generates. When I was in college, I used to share my study guides with everyone, and then my classmates would end up sharing theirs, and we each ended up just having to write a chapter instead of each of us writing the entire study guide ourselves.</p>
<p> I see the same thing happening with dbatools, which now has several contributors. I started out writing it all myself, but others have joined in and we’re each writing a single chapter of a really amazing book. The book is even better than if I wrote it alone because everyone is contributing to the area that they’re great at. We’re all having a lot of fun doing it, and learning from each other along the way.</p>
<p> And you know, giving away code for free can really pay off. I got the dream job I’m at now because my boss found me through one of my blog posts that had the solution he was looking for!
</p>
</blockquote>
<h3>boB Rudis</h3>
<p><a target="_blank" href="https://twitter.com/hrbrmstr"><img alt="boB Rudis" src="http://i0.wp.com/www.rsaconference.com/writable/speakers/photo/520x520centertop/YdOyjWOfZ42brC05SBW9I38ol4gaBb.jpg?resize=213%2C213&ssl=1" data-recalc-dims="1"></a> Bob is a fantastic contributor of primarily security and visualisation packages to the R world. I use his stuff for so much stuff I think he warrants another R universe being named after him. Check out his code on <a target="_blank" href="https://github.com/hrbrmstr">GitHub</a>, read his fab <a target="_blank" href="https://rud.is/b/">blog</a>, and even listen to his <a target="_blank" href="http://datadrivensecurity.info/podcast/">Data Driven Security podcast</a>.</p>
<blockquote><p>
Have you ever used a function in a package that saved you hours of time? Have you ever read a blog post or article that shows how to do something that you either had no idea could be done or were struggling to understand? Have you ever asked a question about how to do something you’ve been trying to figure out and received a helpful answer that got you past the block? We’re all involved in our own important work; but, what if you found out that a visualization package you worked on helped further global cancer research? Or, you discover that your answer to a gnarly question on Stack Overflow helped a dozen folks get past a blocker towards their respective PhDs? And, what if you learned that a blog post, paper or book you authored changed entire career paths for folks? As individuals, most of us have limited spheres of direct influence. Yet, every contribution we make to the R community is literally an opportunity to help others change the world. That’s why I #rstats.
</p>
</blockquote>
<h3>Jenny Bryan</h3>
<p><a target="_blank" href="https://twitter.com/jennybryan"><img alt="Jenny Bryan" src="http://i1.wp.com/pbs.twimg.com/profile_images/660978605606875137/s3YrJetD.jpg?resize=213%2C213&ssl=1" data-recalc-dims="1"></a><br>
Jenny has been fighting the good fight and helping others do the same. Developing the tools and the training materials to equip young and old alike with data wrangling skills, Jenny makes things easier for people to do the right thing. You can check out her <a target="_blank" href="https://github.com/jennybc">awesome contributions</a> (10 commits per day on average!) and her fantastic course for UBC <a target="_blank" href="http://stat545.com/">Stat 545</a>.</p>
<blockquote><p>
After tenure, I decided to use my very privileged position to make myself scientifically useful in a different way. When it comes to data analysis with R, we still have plenty of room to reduce garden variety human frustration and doubt. I revamped our data analysis course and threw everything up on the web, with unapologetic coverage of data handling and workflows influenced by software development. I also enjoy writing and contributing to R packages that decrease the agony and increase the quality of data analyses. What motivates me? I love the multiplier effect, where my contributions can make hundreds or thousands of other people better able to do their science.
</p>
</blockquote>
<h3>Rob Sewell</h3>
<p><a target="_blank" href="https://twitter.com/sqldbawithbeard"><img alt="The Beardy Dance" src="http://i1.wp.com/www.sqlrelay.co.uk/wp-content/uploads/2015/06/output_TK2DOU.gif"></a>Rob, the awesome bearded wonder, writes code like it’s going out of fashion. You can see his code on <a target="_blank" href="https://gallery.technet.microsoft.com/scriptcenter/site/search?f%5B0%5D.Type=User&f%5B0%5D.Value=Rob%20Sewell">Microsoft Gallery</a> and <a target="_blank" href="https://github.com/SQLDBAWithABeard">GitHub</a>. Rob wants us to automate boring stuff, and spend time doing cool stuff, like automating things. Like Ed, he presents a lot and you can find him frequently at the <a target="_blank" href="https://sqldbawithabeard.com/">blog</a> grindstone.</p>
<blockquote><p>
I am a strong believer in the tech communities both PowerShell and SQL. I use and have used a lot of code that others have shared and it has helped me. I like the fact that I can pay some of that back by giving code for others to use. I remember what it was like to not know how to do something and helping and enabling others makes me feel good. I love writing PowerShell to solve problems. If someone asks me how can I do this thing with PowerShell I enjoy the challenge and the learning opportunity it gives. But the best reason for me is that people take your code and do amazing things and tell you great stories of things they have done, systems they have built or challenges they have overcome, which is all I ask – Drop me a line and tell me the cool things you have done with my code.
</p>
</blockquote>
<div class="twitter-share"><a target="_blank" class="twitter-share-button" data-size="large" href="https://twitter.com/intent/tweet?url=http%3A%2F%2Fitsalocke.com%2Fgiving-back-code%2F&via=stefflocke&%23038;related=stefflocke%3ASteph">Tweet</a></div>
<p>The post <a target="_blank" rel="nofollow" href="http://itsalocke.com/giving-back-code/">Giving back with code</a> appeared first on <a target="_blank" rel="nofollow" href="http://itsalocke.com/">It's a Locke</a>.</p>
<p><div><div><div><div data-width="55" data-show-faces="false" data-send="true" data-layout="box_count" data-height="62" data-href="http://www.r-bloggers.com/giving-back-with-code/"></div></div><div><a data-url="http://www.r-bloggers.com/giving-back-with-code/" data-counturl="http://www.r-bloggers.com/giving-back-with-code/" data-count="vertical" data-text="Giving back with code" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://itsalocke.com/giving-back-code/"> R – It's a Locke</a></strong>.</div>
<hr>
<a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="http://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="http://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="http://www.r-bloggers.com/?s=data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="http://www.r-bloggers.com/?s=Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="http://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="http://www.r-bloggers.com/?s=map">maps</a>, <a title="Animation in R" rel="nofollow" href="http://www.r-bloggers.com/?s=animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="http://www.r-bloggers.com/?s=RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="http://www.r-bloggers.com/?s=sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="http://www.r-bloggers.com/?s=LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="http://www.r-bloggers.com/?s=SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="http://www.r-bloggers.com/?s=eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="http://www.r-bloggers.com/?s=git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="http://www.r-bloggers.com/?s=hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="http://www.r-bloggers.com/?s=Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="http://www.r-bloggers.com/?s=PCA">PCA</a>, <a title="Time series" rel="nofollow" href="http://www.r-bloggers.com/?s=time+series">time series</a>, <a title="finance trading" rel="nofollow" href="http://www.r-bloggers.com/?s=trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/pje6ixysJv4"></a></div>