Coder Social home page Coder Social logo

ruby-exercises's Introduction

Ruby Exercises

This is a collection of exercises to practice various aspects of Ruby.

Practicing in this manner (small, bite-sized problems that you can do repeatedly) is a fantastic way to solidify programming concepts.

Each folder in this repository is a set of related exercises. Open up the folder and read the README to learn more about them.

Note: If you've just stumbled across this repository online, and are looking to work through these exercises, consider working through these setup instructions and this guide to installing rbenv and a version of ruby, as these two items are pre-requisites to working on these ruby exercises below.

Getting Started

If you are new to Ruby, please see Turing Prep Chapter 1: Make Mod 1 Easier Than It Otherwise Would Be for help getting started with these exercises.

Setup

  1. Clone this repository
  2. From the command line, cd into the ruby-exercises directory.
  3. From the command line, run bundle

Order

Here is a very rough suggested timeline for working on the exercises. This is just a suggestion, as the exercises can be completed in any order.

Where there are video walk-throughs, it could be useful to watch the whole video. These walkthroughs touch on many useful concepts and tools you'll use for the rest of your time at Turing (and your job!), like how to google well, terminal shortcuts, Atom configurations you should check out, pry and using a debugger, and lots more. The time you spend watching and studying these walkthroughs will save you multiples of that time down the road.

Isn't having a video walkthrough of one of these exercises a little like cheating?

Great question! These videos pair well with your learning goals for a few reasons:

  1. There are only a few video walk-throughs. If you do all of the exercises, you'll do many exercises without any assistance.
  2. The things you learn from the walk-throughs will enable you to learn more and better understand what you're doing.
  3. You don't have to watch the videos before you start solving these exercises. You can use them just when you get stuck. Each video has an "index" of what is covered at each point in the video, and where in the video I address a given test. For example, you can be stuck half-way through the advanced_nested_collections exercise, click through to the video, and jump right to the test you're working on.

Suggested workflow

After you do one of these exercises, please please please jot down on a piece of paper some (or all) of the code that you wrote. Here's how one this random alum approaches learning, actual learning of complex technical material

Then delete the code from your editor and make the tests pass a second time.

Here's a way of organizing a paper notebook that could be helpful right about now

The process of writing the code down by hand and rebuilding it feels so hard when you first start it. Once you get in the habit, you'll experience the benefits. You'll learn 5x more if you write code down by hand, and redo each exercise at least once, after your initial pass through.


This repository of exercises is one of the best tools you've got to learn Ruby. Every minute spent here is time very well spent.

  • Week 1

  • Week 2

    • data-types/collections/hashes.rb
    • objects-and-methods/exercise-1
    • mythical-creatures
    • command-query
      • leather_chair_test.rb
      • baby_test.rb
      • beers_test.rb
  • Week 3

    • datatypes/collections/advanced_nested_collections.rb video walk-through
    • object-and-methods/exercise-2
    • mythical-creatures
      • Medusa
      • Werewolf
      • Centaur
      • Ogre
    • command-query
      • adult_test.rb
      • roll_call_test.rb
      • wallet_test.rb
  • Week 4+

    • Enumerables/exercises
    • Iteration
    • Command and Query
    • Complete/Redo Mythical Creatures

ruby-exercises's People

Contributors

brianzanti avatar kytrinyx avatar jcasimir avatar mikedao avatar s-espinosa avatar memcmahon avatar zdcthomas avatar joshcheek avatar megstang avatar josh-works avatar victoriavasys avatar mjc avatar worace avatar novohispano avatar hhoopes avatar agsiegert avatar alischlereth avatar adriennedomingus avatar bad6e avatar dglunz avatar jbrr avatar biglovisa avatar lukeaiken avatar nicholasjacques avatar bobgu avatar vikiann avatar

Watchers

James Cloos 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.