Ruby The Gem of new programming languages. An interpreted scripting language.

Slides:



Advertisements
Similar presentations
Java Script Session1 INTRODUCTION.
Advertisements

Introduction to JavaScript
Language of the Month If it’s December, it must be Ruby! Adam Coffman and Brent Beer.
Ruby on Rails Tutorial Peter Mosca April, Ruby on Rails Tutorial Ruby History Invented 12 years ago in Japan by Yukihiro Matsumoto Spent first 5.
Python Jordan Miller and Lauren Winkleman CS 311 Fall 2011.
Scripting Languages. Originally, a script was a file containing a sequence of commands that needed to be executed Control structures were added to make.
CSC 9010: Natural Language Processing
JAVA v.s. C++ Programming Language Comparison By LI LU SAMMY CHU By LI LU SAMMY CHU.
Ruby (on Rails) CSE 190M, Spring 2009 Week 1. The Players Kelly "Everyday I'm Hustlin' " Dunn Kim "Mouse" Todd Ryan "Papa T" Tucker.
Introduction to C++ - How C++ Evolved Most popular languages currently: COBOL, Fortran, C, C++, Java (script) C was developed in 1970s at AT&T (Richie)
Groovy WHAT IS IT? HOW DOES IT WORK? IS IT USEFUL?
AIT 616 Fall 2002 PHP. AIT 616 Fall 2002 PHP  Special scripting language used to dynamically generate web documents  Open source – Free!!!  Performs.
General Purpose Language Ruby Kit Chan COMP3351 Programming Languages November 9, 2007.
Sadegh Aliakbary Sharif University of Technology Fall 2010.
Introduction to Perl Practical Extraction and Report Language or Pathologically Eclectic Rubbish Lister or …
SCRIPTING IN RUBY By Amber Bennett “Ruby is simple in appearance, but is very complex inside, just like our human body.” --Yukihiro Matsumoto.
1 Perl Perl basics Perl Elements Arrays and Hashes Control statements Operators OOP in Perl.
Ruby! Ronald L. Ramos. What is Ruby? Ruby is a scripting language designed by Yukihiro Matsumoto, also known as Matz. It runs on a variety of platforms,
Advanced Programming Collage of Information Technology University of Palestine, Gaza Prepared by: Mahmoud Rafeek Alfarra Lecture 2: Major Concepts of Programming.
Ruby. Who am I? 1- Bunlong Van 2- Sreyleap Lay, 3- Chhon Meily Blog:
CMPS 211 JavaScript Topic 1 JavaScript Syntax. 2Outline Goals and Objectives Goals and Objectives Chapter Headlines Chapter Headlines Introduction Introduction.
Scons Writing Solid Code Overview What is scons? scons Basics Other cools scons stuff Resources.
Introduction and Features of Java. What is java? Developed by Sun Microsystems (James Gosling) A general-purpose object-oriented language Based on C/C++
Ruby on Rails. What is Ruby? Programming Language Object-oriented Interpreted.
A very basic overview of Server-Side Scripting Or what is PHP, Perl, Python, Ruby and what can they do for me?
Trends in Scripting Languages History For me the purpose of life is partly to have joy. Programmers often feel joy when they can concentrate on the creative.
Python. By Jawad. What Is Python? Python is an open-source object-orientated scripting language. Python is good for embedding snippets to run a program.
Python – May 11 Briefing Course overview Introduction to the language Lab.
Intro to Python Adriane Huber Debbie Bartlett Python Lab #1Python Lab #1 1.
Introduction to PHP Advanced Database System Lab no.1.
C463 / B551 Artificial Intelligence Dana Vrajitoru Python.
Introduction to Python Origins Nature of Python Importance of Python Example.
Core Java Introduction Byju Veedu Ness Technologies httpdownload.oracle.com/javase/tutorial/getStarted/intro/definition.html.
1. An Introduction A Programming Language A Technology Java Development Kit Java API One Language: Three Editions Standard Edition Enterprise Edition.
RUBY by Ryan Chase.
TCL TK. Tcl/Tk C functions can become Tcl commands that are invoked interactively Tk = scriptable, portable user interface –Windows, X (Unix), MacOS,
Introduction Mehdi Einali Advanced Programming in Java 1.
How to execute Program structure Variables name, keywords, binding, scope, lifetime Data types – type system – primitives, strings, arrays, hashes – pointers/references.
8 th Semester, Batch 2009 Department Of Computer Science SSUET.
Scripting Languages Info derived largely from Programming Language Pragmatics, by Michael Scott.
Text TCS INTERNAL Oracle PL/SQL – Introduction. TCS INTERNAL PL SQL Introduction PLSQL means Procedural Language extension of SQL. PLSQL is a database.
Introduction to information systems RUBY dr inż. Tomasz Pieciukiewicz.
COMPUTER PROGRAMMING Year 9 – lesson 1. Objective and Outcome Teaching Objective We are going to look at how to construct a computer program. We will.
Scott Marino MSMIS Summer Session Web Site Design and Authoring Session 13 Scott Marino.
Fun Fact: Python is not named for the snake Rather, it is named for Monty Python’s Flying Circus.
Programming Languages Concepts Chapter 1: Programming Languages Concepts Lecture # 4.
Python Joseph Eckstrom, Benjamin Moore, Willis Kornegay.
Ruby Tien Ho and Brandon Hostetter. Overview ▸ Object-oriented, functional, imperative, and reflective ▸ Interpreted language ▸ Influenced by Perl, Smalltalk,
First appeared Features Popular uses Basic This language emphasises on ease of use, allowing general purpose programming to those with a small amount of.
Presented By P.SRIVIDYA 085D1A0552 Programming Language.
JRuby on Rails Presenter Name
Introduction CMSC 202 Fall Instructors Mr. Ryan Bergeron – Lecture Section 01 Tues/Thu 1:00 – 2:15 am, Sondheim 111 – Lecture Section 04 Tues/Thu.
JRuby on Rails Brian Leonard ブライアン レオナルド
Object Oriented Programming in
The language focusses on ease of use
Basic 1960s It was designed to emphasize ease of use. Became widespread on microcomputers It is relatively simple. Will make it easier for people with.
Scripting Languages Info derived largely from Programming Language Pragmatics, by Michael Scott.
Basic 1964 PC general purpose Imperative Small Easy to use.
Ruby: An Introduction Created by Yukihiro Matsumoto in 1993 (named after his birthstone) Pure OO language (even the number 1 is an instance of a class)
Scope History of Ruby. Where can you use Ruby? General Features.
Introduction Python is an interpreted, object-oriented and high-level programming language, which is different from a compiled one like C/C++/Java. Its.
PHP Introduction.
Henning Schulzrinne Advanced Programming
1 Python Lab #1 Intro to Python Adriane Huber Debbie Bartlett.
What to do today: Brief history of Ruby General qualities/info
Advanced Programming Fall 2017.
Introduction to Python
Introduction to Python
General Computer Science for Engineers CISC 106 Lecture 03
Python Basics. Topics Features How does Python work Basic Features I/O in Python Operators Control Statements Function/Scope of variables OOP Concepts.
Presentation transcript:

Ruby The Gem of new programming languages. An interpreted scripting language

Introductions Speakers: Ryan Krcelic, Jay Stinson, and Josh Parker

Recipe for Ruby Take a true object oriented language Give it a “clean” syntax. No semicolons, brackets, or need to declare variables. Add in a good measure of the flexibility and convenience of languages such as Python and Perl

The Evolution of Ruby Written by Yukihiro Matsumoto Evolved mainly from Perl and Python Designed to make programming easy and fun. Ruby allows you to concentrate on the creative side of programming, with less stress about complicated syntax

More History 1993: conception, work begins Early 1995: implementation of the interpreter (Japanese only) 1997: Version 1.0 released 1998: Development version released 2003: Version 1.6.8, large community support and development

Some Features Object Oriented language with scripting Allows you to access underlying OS features Variables declare themselves automatically depending on the data that is assigned to them Strings can use operators

More Features exception handling features, like Java or Python, to make it easy to handle errors Writing C extensions in Ruby is easier than in Perl or Python Ruby features OS independent threading. Thus, for all platforms on which Ruby runs, you also have multithreading, regardless of if the OS supports it or not, even on MS-DOS!

Example A hello = “Hello world/n” hello = hello * 3 puts hello This statement prints: Hello world The /n denotes the start of a new line.

EXAMPLE B def sayGoodnight(name) result = “Goodnight ” + name return result end #This is a comment puts sayGoodnight(“John”)

Example C count = 0 sum = 10 #example of a for loop 5.times do count += 1 sum += count end #Convert number to a string puts sum.to_s

Compared to C++ Ruby C++ Dynamic Static Yes No Typing Run Time access to method names Metaclasses Garbage Collection

Sources