1. Practice, Practice, Practice

Congratulations on finishing your first Ruby application! The next step in becoming an awesome developer is to be able to think of solutions to problems and output it in code. Right now, you are most likely in the stage where you're not sure what you're doing at all - but it's perfectly normal and we expect it to be that way. The only way to get comfortable with programming is to practice, so that's what we're going to do.

We're going to start with easier problems, and then gradually move towards more difficult problems.

I don't know where to start 😭

When you first tackle these problems, you probably won't know where to start at all. It takes practice to be able to think logically and clearly, but it's certainly worth the effort.

The first thing you want to do is to simplify the problem. Try to use real life examples or imagine yourself doing the task yourself. The second step is to break down the operations into bite size pieces. Think if I were to perform these operations, exactly how would I do it? How can I tell a person who can only take exact orders how to achieve the goal?. Once you have those steps down, it's time for you to start writing code. Writing all of your ideas out on paper really helps in visualizing your thoughts and often leads to clearer solutions.

It's going to be tough, but good luck! :)

Assignments

DURATION: 1 week

First create a Github Repository called Codewars Challenges. Inside of this repository, create a new ruby file with the title of the problem and enter and save your code in this file.

Problem Set 1

1. Remove Duplicates

2. 2 + 2 * 2

3. Grader

4. Sum Array

Problem Set 2

1. Convert Boolean to String

2. Convert Number to String

3. Add Item to Array

4. Get the Middle Character

Problem Set 3

1. Rock Paper Scissors

2. Tip Calculator

3. Number of People in the Bus

4. Short Long Short

Problem Set 4

1. Function 1 - hello world

2. Function 2 - squaring an argument

3. Function 3 - multiplying two numbers

4. Statistics Algorithm - Calculate Mean

Problem Set 5

1. Square(n) Sum

2. Reversed Words

3. Greet Me

4. Ruby Person Class Bug

Lesson list