Fullstack Q&A

Machiko asked me to post answers to a Q&A in advance of the talk I’ll give at next week’s Fullstack meetup. Here they are!

What’s your story in a few sentences? I grew up in Simi Valley, went to college in the Bay Area, and have been back in southern California for the past 10 years. I got interested in programming a few years ago, when I learned about physical computing (i.e., the amazing stuff that’s done with Arduino, Raspberry Pi, etc.). Ironically, none of the work I’ve actually done involves physical computing!

How did you hear about Outreachy? What made you want to apply? I heard about Outreachy in a Women Who Code weekly newsletter. It was less than 2 weeks until the application deadline and I had serious doubts about my ability to contribute to Homebrew, but the project mentor was very encouraging. Plus, Homebrew was the only summer Outreachy project that involved things I knew how to use (Ruby, Git, GitHub, and OS X).

What was the application/interview process like? The entire program and its processes are documented on a Wiki page. After I learned about Outreachy and Homebrew’s participation, I read the info on Homebrew’s Summer of Code repo and then emailed the mentor to introduce myself. He gave me some pointers on how to make my first contributions and answered all my questions. I spent the next two months reading as much Homebrew code and documentation as I could (even though I couldn’t understand it all) and submitting small contributions for various core formula files.

There’s only an application to submit for Outreachy (no interview). You’re required to make at least one contribution to the project before submitting your application, and you’re encouraged (urged) to make more contributions throughout the application period. You can make changes to the application throughout this time (i.e., you can update a running list of contributions).

What was your first commit/fix/issue for Homebrew? My first pull request was a small fix for gf-complete’s formula file. I removed a line that redundantly stated the version number for gf-complete.

Talk about the tools you use. What language do you write? In what app? I write Ruby in Sublime Text using the Rubocop linter to catch style violations; in Sublime, I display a ruler at 80 characters to catch lines that are too long.

sublime

To familiarize myself with how brew commands work, I run them in the shell, I look them up in the man pages, and I read their code; I also use brew irb to play with methods written in Homebrew’s DSL, particularly ones from the Formula API.

brew irb

Rubular is helpful (to play with regexes).

rubular

And I keep several browser tabs open and pinned for reference:

How do you talk to your coworkers/colleagues? We (the Google Summer of Code and Outreachy interns) have a #gsoc-outreachy channel for open group discussion within Homebrew’s Slack group. We use direct messages, too.

What do you use GitHub.com for? All of Homebrew’s repositories are hosted on Github. I reference Homebrew’s share docs (stored in the Homebrew/brew GitHub repo) and I submit pull requests for my work. And updating Homebrew itself is effectively the same as pulling updates from its remote master repo into your local repo.

What do you do if you have a question?

More screenshots!…

My main task this summer has been to increase Homebrew’s test coverage. Running brew tests tells rake to run all of the unit and integration tests that live inside the Homebrew/test directory. Adding the --coverage option tells SimpleCov to generate an HTML report that you can view in your browser.

brew tests

Here’s a recent SimpleCov report! (It lives at Homebrew/test/coverage/index.html.) Almost all of my work has involved testing brew commands, so the Homebrew/cmd files are what I’m particularly concerned with.

simplecov

And here’s the checklist you’re asked to complete before you submit a pull request to the Homebrew/brew repo:

pr checklist