Nice to meet you. This is Takumi. I started to improve my output as an engineer. Thank you.
What is Ruby? Before that, here you will learn what programming is in the first place and the meaning of basic terms.
programming Data that summarizes the processing procedures performed by a computer is called a program. The work of creating and writing this program is called programming.
Programming language The language used for programming. On the other hand, the language we humans use in everyday conversation is called natural language.
Natural languages such as Japanese and English are for humans to communicate with each other. A programming language is a language for humans to ask a computer to process.
Ruby (programming language) Ruby is one of the programming languages. Since the description is simple and easy to understand, it is easy and fun to program, and it is practical. You can create a variety of software, from large web applications to small programs.
→ Ruby official website https://www.ruby-lang.org/ja/
Ruby program execution procedure
To output Hello World with ruby, write like this in VScode.
1 puts "Hello World"
In the terminal, write like this.
#Check the current directory % pwd /Users/username/ruby #Check the contents of the directory % ls helloworld.rb #Run Ruby file % ruby helloworld.rb
The following is the executed screen.
[email protected] ~ % cd ruby [email protected] ruby % pwd /Users/takumi/ruby [email protected] ruby % ls helloworld.rb [email protected] ruby % ruby helloworld.rb Hello World
that's all. We will continue to do so! Thank you for reading.