Skip to content

This is a simple, unremarkable repository about my progress in learning Ruby Core

Notifications You must be signed in to change notification settings

thaitrinh2701/my-ruby-core

Repository files navigation

Ruby Core Learning Repository

This is my personal repository for learning Ruby Core.

Sad Story - 17/11/2024: I know this repository is old, but I had completed about 16 chapters (I belived) and forgot to push them to GitHub. Unfortunately, at that time, I downgraded my PC to Windows 10, and when I returned to check my public repositories (including this one), I realized that I hadn't uploaded all the chapters.

DONT BE LIKE ME IF YOU DONE SOMETHING, JUST PUSH THEM TO GITHUB, DON'T WAIT UNTIL IT COMPLETE :(

If I have time, maybe I code Ruby again and complete this old repo


WHAT IS RUBY?

Ruby is an object-oriented programming language that can be set up on all modern operating systems. It was first developed and released in 1995 by Yukihiro Matsumoto, also known as Matz. You can find his GitHub profile here: Yukihiro Matsumoto.

The official website for the Ruby programming language is available here: ruby-lang.org.


WHY RUBY?

Ruby focuses on programmer productivity and simplicity. Its syntax is much simpler than that of other programming languages, making it easier to write and understand code. Due to its emphasis on programmer happiness, Ruby may have slower execution speed compared to languages like Java or Python. However, while Ruby might be slower, it is not inherently slow.


RUBY ON RAILS

Ruby on Rails (often referred to as RoR or Rails) is a popular web development framework built on top of Ruby. It was developed by David Heinemeier Hansson (DHH), whose GitHub profile can be found here: David Heinemeier Hansson.

It’s important to note that Ruby and Rails are different technologies: Ruby is the programming language, and Rails is a framework that requires Ruby to function.


RUBY INSTALLATION

To install Ruby, visit the official RubyInstaller website: rubyinstaller.org and download the latest version with the DevKit.

After installation, you can verify the installation by running the following command in your terminal:

ruby -v

Recommended VSCode Extensions:

  • Code Runner: Easily run your Ruby scripts from within VSCode.

  • Ruby Extension Pack by Shopify: Provides enhanced Ruby language support in VSCode.


Hello Ruby Example:

Here’s a simple Ruby script to print "Hello Ruby":

puts "Hello Ruby"

To run the code from the terminal, use the following command:

ruby file_name.rb

This repository is based on the Udemy course "Learn to Code with Ruby" and other Ruby tutorials available on YouTube.

About

This is a simple, unremarkable repository about my progress in learning Ruby Core

Resources

Stars

Watchers

Forks

Languages