[Output] Learn Ruby from what you want to do at the fastest speed ・ Part 1 "Think about what you want to make"

Introduction

All the engineers who are looking at Qiita, do you have any output? By outputting, learning efficiency will surely increase!

"Doki! I'm just practicing problems ..."

That person. It ’s okay! So I wrote this article. For you!

An effective learning method is output. Make your own original program. It explains the flow of creating an original program, so if you read it to the end, you should be able to understand the basics of Ruby!

Target readers

This article is written for the following people:

――I want to learn Ruby as a programming beginner ――I touched on Ruby a little, but I still don't understand. ――I want to make something for the time being!

I will tell people like that in an easy-to-understand manner.

What to learn in this article

In this article, you will learn the following knowledge about the basics of Ruby through the original program "Achi, Peel, Whit! Game" that I created in the second month of programming learning.

--Method --Class --Various processing

In addition, "Ah, peel, whip! Game" will be explained in several parts.

  1. Think about what you want to make
  2. Disassemble the function
  3. Write a simple code in solid
  4. Improve the code

If you read this, you should be able to create a program like the one below! Of course, don't forget to move your hands!

What I made

DEMO.gif

Then, the following is the main story!

Operating environment

Think about what you want to make

I hear a voice saying, "Even if it is called an output, what should I make?"

In conclusion, I think anything is fine!

In my case, I decided to create this game because I played with a 4-year-old kid "Away, Peel, Whit". Also, for your own, friends, family, and colleagues at work

--Hobbies ――What I wish I had --Trouble / Trouble

I think that it is also an ant to shape it from such things. I think there are some hints in everyday life.

After deciding to create "Ah, Peel, Whit", I transcribed the flow chart (like) below for the flow of the game processing.

flowchart

あっち向いてホイっ!でおこずかいゲット.png

Summary

In this article, I explained how to write a hint to think about what you want to make and a fixed one in a flowchart (like a figure).

In the next article, I will explain the functional decomposition based on the transcript.

Reference book

--Kitami-style illustration IT school basic information engineer

Recommended Posts

[Output] Learn Ruby from what you want to do at the fastest speed ・ Part 1 "Think about what you want to make"
[Output] Learn Ruby from what you want to do at the fastest speed-Part 2 "Create a flowchart"
What to do if you can't install the plugin from the Eclipse marketplace
Think about what to do for SIer education for young development engineers (Part 1)
Think about what to do for SIer education for young development engineers (Part 3)
Think about what to do with education for young development engineers of SIer (Part 2)
What to do if you change the Listen Address from the settings screen with Mattermost docker
What to do if you installed Ruby with rbenv but the version does not change
[Rails Tutorial Chapter 2] What to do when you make a mistake in the column name
What you need to do to open a file from the menu in the document-Based App macOS app
What I did in the version upgrade from Ruby 2.5.2 to 2.7.1
What to do if you can't use the rails command
Output about the method Part 1
What to do if you forget the root password in CentOS7
What to do if you cannot roll back the migration (UnknownMigrationVersionError)
What to do if you can't bundle update and bundle install after installing Ruby 3.0.0 in the Rails tutorial
[Ruby] I want to output only the odd-numbered characters in the character string
A memo when you want to clear the time part of the calendar
What to do if you don't like the code generated by swagger-codegen-cli
If you want to make a zip file with Ruby, it's rubyzip.
I want to find out what character the character string appears from the left
[Ruby] I want to make an array from a character string with the split method. And vice versa.