Open github-learning-lab[bot] opened 4 years ago
Divya
Alright Divya, before we dive into the tutorial, there are a couple of steps to set up our work environment.
You might not need to install Ruby on your machine if it is already installed. You can figure that out by opening up your command line and typing:
ruby -v
If you see a Ruby version, then you're good to go. If you don't see a Ruby version, then you'll need to install Ruby for your machine.
You can check if Git is installed in a similar way. Type the following into your command line:
git --version
If you see a Git version, you're all set. If you don't see a Git version, then you'll need to install Git for your operating system.
Now that we've got Ruby and Git installed, we're going to clone this repository from GitHub so we can make changes.
Open your console and navigate to the folder you want to work in, then enter:
git clone https://github.com/divyajn07/ruby-course.git
You should see a folder called ruby-course on your desktop, and inside that folder you'll see three files:
Most machines come with a basic text editor that you can use to get started, though I recommend installing an editor that is a bit more robust. Some popular ones are Atom, VS Code, and Sublime Text.
With all that installed, we have what we need to begin writing our Ruby program!
Close this issue for the next step
Hey there!
Today we will be learning the basics of Ruby. Ruby is a flexible and dynamic language, developed to feel natural and simple (some even call it beautiful💎). It is open source, and widely popular with the Rails framework.
Today, I'm going to guide you through your first Ruby project. First, we will write a program to output "Hello world" (as software developers are known to do). Then, we will learn some ruby methods to collect user input. Lastly, we will display different statements based on their input.
This is an interactive course, where you will be prompted to do something to finish each step. If it takes more than a few seconds for a response, try refreshing your browser.
Leave a comment with your name to continue