Mike Gehard

Ruby Learning

Welcome to my attempt at coming up with a reproducible outline that will allow any non-programmer to become a software developer in the Ruby programming language and get a job writing web applications using the Ruby on Rails framework.

As we all know, computers have become a large part of our lives. Behind all of those computers, lie an army of people that tell those computers what to do. Many people think that what we do as software developers is magic. My goal is to show people that it is not magic and it indeed a skill that can be learned by anyone who wants to put in the effort to do so.

I am as new to teaching non-programmers how to become effective software developers as you are at programming in Ruby. I am looking to get enough people to participate in this little “experiment” so that I can refine this outline to make it more effective. In order to do that, I am asking that you will share your feedback with me as you progress. I have been developing software for almost 15 years now so I have a different view on the steps needed to learn to program than say an unemployed carpenter or a stay at home mom who has never programmed at all.

You may be asking why you would want to learn to become a software developer in Ruby. There are many reasons: it is a fun job, it pays well, you are constantly learning, etc. Here is a link that shows what the average Ruby on Rails developer is paid: http://www.simplyhired.com/a/salary/search/q-ruby+on+rails+developer

If you want to see how many jobs there are out there for Ruby on Rails developers, just type “ruby on rails job openings” into Google and you will see.

If you are interested in chatting more about this program, please reach out to me via Twitter. My user name there is mikegehard. Please include the hashtag#newrubydevs” in your tweet so I can track what people are saying about this program.

Thanks in advance and I look forward to your feedback and questions.

Please check back often as I hope that the outline will continue to evolve with help from all of you. To submit changes, please use GitHub to submit a pull request to the repository or contact me on Twitter.

Your assignments…should you choose to accept them

Please follow the instructions to the letter. Part of being a great software developer is the ability to follow directions and attention to detail.

One person’s view on what it takes to become a software developer

  1. Read this blog post: http://mattdeboard.net/2011/11/23/how-i-became-a-programmer/

Another person’s view on what it takes to become a software developer

  1. Read this blog post: http://brandonhays.com/blog/2012/01/23/learning-to-program-part-i-how-i-did-it/ and the two associated posts that are linked to from this article.

Learn about the command line interface (aka CLI) in your operating system (OS) of your choice

Many computer users don’t know that there is a way to interact with a computer outside of the graphical user interface (GUI) that we have become so used to. It is called the command line interface. If you need a little help navigating this new world, or even a refresher about some aspects of it, check out the CLI Crash Course.

Learn Git and GitHub

Source control management (SCM) systems are part of the daily life of a sofware developer. This is the place that all of our work lives. One of the more widely used SCMs is called Git. You will learn about source control in Git as your first assignment.

Install Git on your system

  1. Watch Git Video Part 0. If you are running windows, checkout out this link: http://nathanj.github.com/gitguide/tour.html

Read up on how Git works

  1. Read Chapter 1 of ProGit book

  2. Sign-up for a GitHub account

  3. Create a Hello World repo on Github. Push a file called README to this remote repository. This file should contain any feedback you have to give on this exercise. When you get this all complete, send me a tweet with a link to your GitHub repository. These links will help get you started:

Learn all that you can about git

  1. Go through the Git Immersion. If you have any questions, you can refer to the ProGit book or send me a tweet on Twitter.

Install Ruby on your computer

Mac (NOTE: Ruby is pre-installed but is a very old version. We will not use this version.)

  1. Install the GCC compiler from https://github.com/kennethreitz/osx-gcc-installer
  2. Install RVM. You want the single user install.
    • Don’t worry about reading the script because it will probably be as understandable as Latin at this point. If you want to read it, please feel free.
  3. Install latest version of ruby (currently 1.9.3-p0) using RVM.

Windows

  1. Install Pik
  2. Install ruby 1.9.3-p0

NOTE: If you have any questions, please let me know. I don’t use a PC everyday but I can help point you in the correct direction.

Linux

  1. Try to follow the Mac instructions and let me know if you have any questions.

Get basic background in Ruby

  1. Fork this repository and clone your fork into a directory on computer.
  2. Finish each exercise at Learn Ruby the Hard Way
    • All files that you write for Learn Ruby the Hard Way should be saved into the directory that was created when you cloned your fork of the repository.
    • Each exercise should be in its own file.
  3. When you complete an exercise, push the changed exercise file to your fork of the LeanRubyTheHardWay repository.
    • Make some notes in the commit message about your thoughts of the exercise, what was hard, what was easy, include some links to any extra information you found on the internet.

If you have questions about an exercise, follow these steps for submitting your questions via GitHub:

  1. Create a new branch in your local Git repository
  2. Commit the changes to that branch with some comments about what is confusing you
  3. Push those changes to a remote branch on Github
  4. Submit a pull request so I know that you have questions

We will then use comments in that pull request to as the first mechanism to talk about the issue. If we need to chat either on Skype or face to face we can do that as well.

Begin to understand test driven development in Ruby

Testing in important in the Ruby community for many reasons. I could talk your ear off about this so please email me to set up a time to chat about it if you’d like to hear more.

  1. Read about test driven development
  2. Clone this repository to your computer
  3. Read the README.rdoc to get started

Gain some insight about how to approach the huge universe of information about software

Now you’ve got some Ruby chops and you should feel pretty confident about your ability to at least be able to read and write some basic Ruby. This gift comes with a price. The Internet is chock full of tutorials and information about learning programming languages. Take a moment to read this blog post so you don’t drown in this huge pool of information.

Learn to build a website in Ruby on Rails

  1. Read about the history of Ruby on Rails
  2. Fork this repository
  3. Clone the fork to your computer
  4. Work thorugh the book. As you complete your exercises, push your changes to your fork of the repo.
  5. If you run into an issue, create a separate branch for the issue, push the branch to Github and submit a pull request so I can help out.

Refine your knowledge about how to build a website in Ruby on Rails

Rails is a great framework for quickly building web applications. As Rails projects grow, they suffer some maintainability problems. Get a copy of Objects on Rails and begin to refine your knowledge of how Rails apps are built.

Begin to think about a career in software development

You are beginning to have the skills it takes to become a software developer. You may still be a ways off from looking for a job doing software development but it is never too early to start thinking about it. Pick up a copy of Chad Fowler’s book “The Passionate Programmer” and learn some things about how to think about your career in software development.

Let’s build something together

You’ve come a long way and now it’s time to get serious. You’ve got some skills and now it is time to hone them to a sharp edge. Think of a problem that could be solved by a web based application. It’s time to start building that application. When you get to this step, reach out to me via Twitter (mikegehard) and we’ll start the discussion about how we are going to pair to build your application.

Additional Reading