By Timothy Sparks. Yukihiro Matsumoto wanted “a scripting language that was more powerful than Perl, and more object- oriented than Python. That's why.

Slides:



Advertisements
Similar presentations
Perl Practical Extration and Reporting Language An Introduction by Shwen Ho.
Advertisements

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 14 Introduction to Ruby.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Introduction to Rails Programming the World Wide Web Fourth edition.
Haverford Cascade Mentoring Program Computer Programming: C++ to Python Conversion Professor: Dave Wannacott Student: Kris Brower Dobbins Vocational Tech.
Statement-Level Control Structures
Copyright © 1998 by Addison Wesley Longman, Inc. 1 Chapter One Preliminaries, including –Why study PL concepts? –Programming domains –PL evaluation criteria.
Customisation The GUI in most GIS applications is sufficient for most needs. However, situations arise where you want either to: –Modify the interface,
1 Javascrbipt Intro Javascript (or js) is a programming language. Interpreted, not compiled. Not the same as java, but, similar. Use tags to use. Object-oriented.
Copyright © 2006 The McGraw-Hill Companies, Inc. Programming Languages 2nd edition Tucker and Noonan Chapter 1 Overview A good programming language is.
Ruby The Gem of new programming languages. An interpreted scripting language.
Scripting Languages. Originally, a script was a file containing a sequence of commands that needed to be executed Control structures were added to make.
Squirrel Programming Language By Nandini Bhatta CS537 Summer 2008.
Pascal By: Liane Tom. Outline o Background o Data types and Syntax o Procedures and Functions o Advantages o Disadvantages.
Scripting with Ruby What is a scripting language? What is Ruby?
Copyright © 2006 The McGraw-Hill Companies, Inc. Programming Languages 2nd edition Tucker and Noonan Chapter 12 Imperative Programming I really hate this.
Copyright © 1998 by Addison Wesley Longman, Inc. 1 Concepts of Programming Languages Chapter 1.
By Logan Phipps Hal student.  This power point explains some common programming languages enjoy  When done click on the home button to return to home.
Introduction to Ruby CSE 413 Autumn 2008 Credit: Dan Grossman, CSE341.
Scope.
Python quick start guide
First appearedFeaturesMain paradigmsPopular uses COMPUTING Basic FOR A=1 TO 100 IF A MOD 15 = 0 THEN PRINT “FizzBuzz” ELSE IF A MOD 3 = 0 THEN PRINT “Fizz”
314450: PROGRAMMING PARADIGMS Teaching scheme: Examination Scheme: Lectures: 3 Hours/Week Theory: 100 Marks OBJECTIVE: To understand the basic building.
CMSC 330: Organization of Programming Languages 1 Overview of Ruby.
General Purpose Language Ruby Kit Chan COMP3351 Programming Languages November 9, 2007.
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,
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
Ruby. Quick History Name chosen because it was the birthstone of the colleage of the creator Yukihiro Matsumoto First public release Dec Created.
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.
Guide to Programming with Python Chapter One Getting Started: The Game Over Program.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley STARTING OUT WITH Python Python First Edition by Tony Gaddis Chapter 4 Decision.
1 CS Programming Languages Class 11 September 26, 2000.
Perl Language Yize Chen CS354. History Perl was designed by Larry Wall in 1987 as a text processing language Perl has revised several times and becomes.
C463 / B551 Artificial Intelligence Dana Vrajitoru Python.
Perl Tutorial. Why PERL ??? Practical extraction and report language Similar to shell script but lot easier and more powerful Easy availablity All details.
Copyright © 1998 by Addison Wesley Longman, Inc. 1 Chapter 7 Levels of Control Flow: 1. Within expressions 2. Among program units 3. Among program statements.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 6: Transition to Java Programming with Alice and Java First 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,
Department of Electrical and Computer Engineering Introduction to Perl By Hector M Lugo-Cordero August 26, 2008.
Scripting with Ruby What is a scripting language? What is Ruby?
Introduction to Perl. What is Perl Perl is an interpreted language. This means you run it through an interpreter, not a compiler. Similar to shell script.
Copyright © 2006 The McGraw-Hill Companies, Inc. Programming Languages 2nd edition Tucker and Noonan Chapter 1 Overview A good programming language is.
Chapter 8 © 2002 by Addison Wesley Longman, Inc Introduction - Levels of Control Flow: 1. Within expressions 2. Among program units 3. Among program.
PROGRAMMING USING PYTHON LANGUAGE ASSIGNMENT 1. INSTALLATION OF RASPBERRY NOOB First prepare the SD card provided in the kit by loading an Operating System.
Euphoria Programming Language CSC 507 Kasilingam Vimalan.
Ruby Tien Ho and Brandon Hostetter. Overview ▸ Object-oriented, functional, imperative, and reflective ▸ Interpreted language ▸ Influenced by Perl, Smalltalk,
Presented By P.SRIVIDYA 085D1A0552 Programming Language.
Presented By Sushil K. Chaturvedi Assistant Professor SRCEM,Banmore 1.
Basic Concepts: computer, program, programming …
Lesson 06: Functions Class Participation: Class Chat:
Ruby Getting started & Ruby.New Presented by Mario Tayah
CS1022 Computer Programming & Principles
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.
Server-Side Application and Data Management IT IS 3105 (Spring 2010)
Chapter 19 JavaScript.
SVTRAININGS. SVTRAININGS Python Overview  Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is designed.
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
Typescript Programming Languages
Control statements Simple statements Basic structured statements
Coding Concepts (Basics)
JavaScript.
Statement-Level Control Structures
Web Application Development Using PHP
Python is a popular programming language. It was created by Guido van Rossum, and released in It is an interpreted, interactive, object-oriented.
Presentation transcript:

By Timothy Sparks

Yukihiro Matsumoto wanted “a scripting language that was more powerful than Perl, and more object- oriented than Python. That's why I decided to design my own language“ Created in 1995

Looks like the love child of Perl, C, and Ada. Implicitly declared data types (example = 5) # - Comments Built in data conversion x.to_- (similar to C# VariableName.toString) Supports regular expressions

For (Var) in [1,3] do …. end Range does not have to be single data type [1,”two”, [3,4,5.0]].each do |Var| While do, do while, until, loop statements

Case (MommySays) when (ImSpecial) : print “I like chocolate milk” else …. End If (boolean) ….. Elsif …. Else …. End

Allows for custom classes Allows for changing existing classes (method overridding)

Completely OO / Psuedo- procedural. Very Simple Object Creation

C-based Begin …. Rescue (Exception) #Catch () in C …. End Custom Exeptions

Support began in 1.8 (currently stable at 1.9.2) JRuby – allows for currency prior to 1.8 (no Global Interpreter Lock ) < 1.8: pseudo-concurrency

Ruby On Rails Completely free Compiler for Mac, Linux, Windows No need for an IDE

Readability: 9 Writeability: 9 Reliability: 9 Cost: FREE!!! (unlike food)

Basic Condensed Object Oriented

tAddison Wesley Longman, Inc., Programming Ruby, October , t Aptana, October 25, 2011, Huw Collingbourne, The Book of Ruby, 2009, © Huw Collingbourne, associated website: Bruce Stewart, An Interview with the Creator of Ruby, November 29, JRuby, October, 24, Peter Cooper, Ruby Inside, May 13, fibers-8-useful-reads-on-rubys-new-concurrency-feature-1769.htmlRubyMine, JetBRAINS, October 24, 2011, fibers-8-useful-reads-on-rubys-new-concurrency-feature-1769.htmlhttp:// Ruby Official, October 24, 2011, Robert W. Sebesta, Concepts of Programming Languages, © 2010 Pearson Education, Inc., Ninth Edition