Beginner
    Image

    Ruby is a programming language (♦ see DEF) multiplatform and object oriented, created in 1995.

    Ruby allows you to create, among other things, App. and websitessoftwares and even games.

    Code Examples

    Let's start with very simple codes. The more you progress, page after page, the more sophisticated the scripts will be. However, you must pass the cape of 30 to 40 pages per level, before moving on to the next step... COPY AND IMMERSE YOURSELF!

    C 0001 - Hello World !

    Say hello...
    Reproduce this code (please do not copy-paste!). Watch out for the indentation !
    print "Hello World !\n"
    print "Bye bye World !\n"
    
    or
    puts "Hello World !"

    Reproduce this code, choosing one of the compilers below (♦ see DEF) (don't copy-paste! It would be too easy). They have the same function, just pick up one according to your preferences.

    When you copy your code, replace the existing code (by default) with your own.

    Warning ! For some of these compilers, you might have to choose the programming language yourself, in a specific menu which is offered to you. Of course, don't forget to click on RUN !

    C 0002 - Repeat A Word

    Print several times the same word...
    Reproduce this code (please do not copy-paste!). Watch out for the indentation !
     5.times do
         puts "Hello !"
     end
    

    Reproduce this code, choosing one of the compilers below (♦ see DEF) (don't copy-paste! It would be too easy). They have the same function, just pick up one according to your preferences.

    When you copy your code, replace the existing code (by default) with your own.

    Warning ! For some of these compilers, you might have to choose the programming language yourself, in a specific menu which is offered to you. Of course, don't forget to click on RUN !

    C 0003 - Types Of Information

    Get it right...
    Reproduce this code (please do not copy-paste!). Watch out for the indentation !
    time1 = Time.new
    puts "Hour:" + time1.inspect
    time2 = Time.now
    puts "Hour:" + time2.inspect
    

    Reproduce this code, choosing one of the compilers below (♦ see DEF) (don't copy-paste! It would be too easy). They have the same function, just pick up one according to your preferences.

    When you copy your code, replace the existing code (by default) with your own.

    Warning ! For some of these compilers, you might have to choose the programming language yourself, in a specific menu which is offered to you. Of course, don't forget to click on RUN !

    C 0004 - String

    Print two names...
    Reproduce this code (please do not copy-paste!). Watch out for the indentation !
    name1 = "Julian"
    name2 = "Mary"
    puts "Voici #{name1} and #{name2}."
    

    Reproduce this code, choosing one of the compilers below (♦ see DEF) (don't copy-paste! It would be too easy). They have the same function, just pick up one according to your preferences.

    When you copy your code, replace the existing code (by default) with your own.

    Warning ! For some of these compilers, you might have to choose the programming language yourself, in a specific menu which is offered to you. Of course, don't forget to click on RUN !

    Ruby Technical Specifications

    Info+ (Ruby)

    Creation
    » Creation date: 1995
    * Created by Yukihiro Matsumoto
    * Developed by Contributors
    * Written in C
    * Cross-platform
    * Ruby / GNU licenses

    Tools+ (Ruby)

    Softwares & Frameworks

    Practical Cases

    In order to train you, we add small programs every week to this section to keep you up to speed.

    CASE 1

    BASIC LEVEL

    Preparing a working environment

    These recommendations will get you started with Ruby, as comfortably as possible.

    ⇒ TRY

    CASE 2

    ADVANCED LEVEL

    Create a Web App.

    This little kit will allow you to design an Web App. in the field of online car sales.

    ⇒ TRY

    CASE 3

    EXPERT LEVEL

    Make a small video game

    Design and develop a 2D video game...

    ⇒ TRY

    News

    2022 (C) Fond of Code tm (official trademark)Reflex002 / Diego Piccini (da Todi).
    All rights reserved. Protected editorial content (www.theethicalweb.com) / INPI France.

    About Us...

    About Us...
    Reflex002

    O-O
    Programming
    Development

    Main Topics

    Main Topics

    Legal/Support

    Legal/Support
    Image
    © Copyright 2022 Reflex002. Designed By Art and Earth Networks and Technology / Diego Piccini / Piccini da Todi G&D Studio