Git Product home page Git Product logo

careerbuilder-2014-april's Introduction

Object-Oriented Design Class

Dependencies

You will need:

Setup

Clone this repository:

$ git clone https://github.com/torqueforge/careerbuilder-2014-april.git

Change directories so that you are in the project:

$ cd careerbuilder-2014-april

Install the dependencies:

$ gem install bundler # if you don't have it
$ bundle install

Sanity Check Setup

To verify that everything is set up so that we can get off to a flying start, run the following command:

$ ruby sanity_test.rb

You should get an error complaining that cannot load such file -- sanity (LoadError).

For example:

/Users/you/.rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- sanity (LoadError)
  from /Users/you/.rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  from sanity_test.rb:3:in `<main>'

Exercises

As the class progresses we will add exercises and solutions to the master branch.

Each exercise is in its own subdirectory, and has its own README.

Working on the exercises

Start on master.

$ git checkout master

Create a new branch:

$ git checkout -b my-new-branch

When you've gotten your test suite to pass stage all the changes:

$ git add . # notice the dot

Then commit the changes:

$ git commit -m "Explain your change here"

When we start working on a new section, switch back to master:

$ git checkout master

Then pull the latest version from GitHub:

$ git pull origin

Then create a new branch. Wash. Rinse. Repeat.

Git: Troubleshooting / Recovery

Throw it all away?

You can throw all your code away like this:

First, make sure that git knows all about the files you have:

$ git add .

Then throw the changes away:

$ git reset --hard

Did your master diverge?

Go ahead and create a new branch with all your changes:

$ git checkout -b my-backup-branch

Then go back to master:

$ git checkout master

Make sure you have the most recent changes from GitHub:

$ git fetch origin

Then tell git to create a new copy of master, throwing away the old one:

$ git reset --hard origin/master

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.