How to write first code in Ruby

Ruby is known nationwide as one of the best international programming languages used for its simplicity, readability and ease of use.

Uses of Ruby

  1. Web Development
  2. Scripting
  3. System Administration
  4. Desktop Applications
  5. Data Analysis

Why should one learn Ruby?

  1. Easy to Learn: it was noted that Ruby has a simple syntax and is relatively easy to learn, even for users such as beginners.
  2. High Demand: it was also one of the popular languages and there is a high demand for Ruby developers in the job market
  3. Others are such as:
  • Cross Industry Applicability
  • Fun to Use and
  • Large Community

First code using CODE EDITOR/VSC in Ruby

Line 1:

puts “Hello, World!”

The above code is just a line of code and that is all in Ruby. Very interesting.

To run and compile this code:

  1. Using the CODE EDITOR, click on run
  2. Move to languages and select Ruby
  3. Automatically, the compiler would also be activated
  4. Click on execute

Congratulations!!!

Let me know, please, if you have any questions about Ruby or if you would like to have more examples from me.

 

Related posts:

About Author


Discover more from SURFCLOUD TECHNOLOGY

Subscribe to get the latest posts sent to your email.

Leave a Reply

Your email address will not be published. Required fields are marked *

Discover more from SURFCLOUD TECHNOLOGY

Subscribe now to keep reading and get access to the full archive.

Continue reading