Giter Site home page Giter Site logo

demo's Introduction

Object-Oriented Design Class

Setup

Clone this repository:

$ git glone https://github.com/torqueforge/careerbuilder-2014-march.git

Change directories so that you are in the project:

$ cd careerbuilder-2014-march

Install the dependencies:

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

Keeping track in Git

To see what git currently thinks is going on, say:

$ git status

To see which branches you have:

$ git branch

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

If you want to save your work, create a branch from master. You can do this at any time, either when you are starting new work, or right before you want to commit.

$ git checkout -b my-new-branch

When you've gotten your test suite to pass.

You have to tell git which changes you want to commit. To tell git to save everything:

$ git add .

Then commit the changes:

$ git commit -m "Explain your change here"

When you start working on a new section, switch back to master.

$ git checkout master

Then pull the latest changes from GitHub:

$ git pull

Then create a new branch.

Wash. Rinse. Repeat.

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

Resources

Refactoring/OOP

Git

Ruby

  • Ruby Koans - test-driven guided tour of Ruby, particularly good for people who already program in other languages.

For all of the following, read the README where there is one. If something is confusing, submit a GitHub issue in the relevant repository. The instructions can probably be improved.

Surveys

demo's People

Contributors

kytrinyx avatar skmetz avatar vegurram avatar

Watchers

Eveng Thao avatar

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.