In this week we are aiming to get you ready with a lot of basic concepts and practices that will be the base for your further development as a web developer. Although they might look simple, it is really important that you grasp these concepts. We are going to build a simple terminal based student directory. Exciting, huh?
Make sure that you go through the knowledge pills (:pill:) when you struggle.
The goal of this tutorial is not only to show you the Ruby code that you'll need to write (that's the easy bit) but to show you the process of creating a project from scratch. Most importantly we'll explain what to do, in what order and why do it at all.
The script will be invoked from the command-line and it will only use pure Ruby, that is, there will be no external libraries to use. It will have text-based interface that will not look particularly exciting but it's really important to understand how to build basic things before trying to create sophisticated websites.
- Setting up your environment
- Printing the list of students
- Refactoring (cleaning the code)
- Arrays
- Methods
- Adding more information about the student
- Asking for user input
- Exercises
- Adding an interactive menu
- More refactoring
- Saving the data to a file
- Loading the data from the file
- Taking arguments from the command line
- Extra exercises