Presented By P.SRIVIDYA 085D1A0552 Programming Language.

Slides:



Advertisements
Similar presentations
1 Copyright © 2002 Pearson Education, Inc.. 2 Chapter 1 Introduction to Perl and CGI.
Advertisements

More about Ruby Maciej Mensfeld Presented by: Maciej Mensfeld More about Ruby dev.mensfeld.pl github.com/mensfeld.
Tahir Nawaz Introduction to.NET Framework. .NET – What Is It? Software platform Language neutral In other words:.NET is not a language (Runtime and a.
How to enter the world of Python Programming for ArcGIS Or, a funny thing happened on the way from an ESRI conference By Katherine Paybins WVAGP Membership.
Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Language of the Month If it’s December, it must be Ruby! Adam Coffman and Brent Beer.
The Ruby Programming Language with Ruby on Rails web application development.
Ruby The Gem of new programming languages. An interpreted scripting language.
Page 1 Ruby by Tim Hanson & Mamadou Seck. Page 2 Philosophy "I hope to see Ruby help every programmer in the world to be productive, and to enjoy programming,
Python Brandon Jeffcoat Dashaun West “Why settle for snake oil when you can have the whole snake?” -- From Usenet posting by Mark Jackson, June 1998.
Scripting Languages CS351 – Programming Paradigms.
Scripting Languages. Originally, a script was a file containing a sequence of commands that needed to be executed Control structures were added to make.
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
Guide To UNIX Using Linux Third Edition
PHP Scripting Language. Introduction “PHP” is an acronym for “PHP: Hypertext Preprocessor.” It is an interpreted, server-side scripting language. Originally.
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.
The PHP Story. PHP Story PHP is a programming language. Incorporate(join) sophisticated business logic. Widely used general purpose scripting language.
Introduction to Ruby CSE 413 Autumn 2008 Credit: Dan Grossman, CSE341.
Overview of JSP Technology. The need of JSP With servlets, it is easy to – Read form data – Read HTTP request headers – Set HTTP status codes and response.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
Doxygen: Source Code Documentation Generator John Tully.
+ Java vs. Javascript Jessi Style. + Java Compiled Can stand on its own Written once, run anywhere Two-stage debugging Java is an Object Oriented Programming.
Comparison of OO Programming Languages © Jason Voegele, 2003.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
SAD and Python with EPICS at IHEP,Beijing, Noboru Yamamoto KEK, JAPAN.
Groovy WHAT IS IT? HOW DOES IT WORK? IS IT USEFUL?
A TOUR OF RUBY 2011 ACM Class, Dong Xie. What is Ruby?  Dynamic programming language  Complex but expressive grammar  A core class library with rich.
C++ Programming. Table of Contents History What is C++? Development of C++ Standardized C++ What are the features of C++? What is Object Orientation?
PHP TUTORIAL. HISTORY OF PHP  PHP as it's known today is actually the successor to a product named PHP/FI.  Created in 1994 by Rasmus Lerdorf, the very.
Computer Programming for Biologists Oct 30 th – Dec 11 th, 2014 Karsten Hokamp  Fill out.
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,
Ruby. Who am I? 1- Bunlong Van 2- Sreyleap Lay, 3- Chhon Meily Blog:
CS 11 java track: lecture 1 Administrivia need a CS cluster account cgi-bin/sysadmin/account_request.cgi need to know UNIX
Python From the book “Think Python”
Ch 1. A Python Q&A Session Spring Why do people use Python? Software quality Developer productivity Program portability Support libraries Component.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Guide to Programming with Python Chapter One Getting Started: The Game Over Program.
CIT 383: Administrative ScriptingSlide #1 CIT 383: Administrative Scripting Introduction.
Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation
David Lawrence 7/8/091Intro. to PHP -- David Lawrence.
Introduction Mehdi Einali Advanced Programming in Java 1.
Today… “Hello World” ritual. Brief History of Java & How Java Works. Introduction to Java class structure. But first, next slide shows Java is No. 1 programming.
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
1 Getting Started with Ruby. 2 What’s Ruby? Ruby is an OO, dynamic, agile language –Everything’s an object For example, try puts -1.abs –Derives strengths.
8 th Semester, Batch 2009 Department Of Computer Science SSUET.
Text TCS INTERNAL Oracle PL/SQL – Introduction. TCS INTERNAL PL SQL Introduction PLSQL means Procedural Language extension of SQL. PLSQL is a database.
Dr. Abdullah Almutairi Spring PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used,
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
XAMPP.
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.
PHP Basics and Syntax Lesson 3 ITBS2203 E-Commerce for IT.
PHP using MySQL Database for Web Development (part II)
The language focusses on ease of use
CST 1101 Problem Solving Using Computers
Programming Languages Dan Grossman 2013
Before You Begin Nahla Abuel-ola /WIT.
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.
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.
SVTRAININGS. SVTRAININGS Python Overview  Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is designed.
How to enter the world of Python Programming for ArcGIS
What to do today: Brief history of Ruby General qualities/info
Intro to PHP.
(Computer fundamental Lab)
FEATURES OF PYTHON.
Web Application Development Using PHP
Presentation transcript:

Presented By P.SRIVIDYA 085D1A0552 Programming Language

I NTRODUCTION Pure Object Oriented language Highly portable, works on Linux, UNIX, DOS, Windows 95/98/NT/2K, Mac, etc. Freely available and open-source. More popular than Python in Japan, probably b/c it handles multibyte character sets so easily. Syntax is readable and easy to learn.

T HE H ISTORY OF R UBY Ruby was written by Yukihiro Matsumoto A Japanese computer scientist and software programmer, whose hobbies include computer programming and compilier design.

R UBY : THE L ANGUAGE No multiple inheritance, but modules allow the importing of methods. Has garbage collection. Exception handling, like Java. Any class or instance can be extended anytime (even during runtime) Allows operator overloading.

R UBY : THE L ANGUAGE Can be extended with Ruby or low-level C. No type declaration. Has iterators, methods which accept blocks for user-defined control structures (like loops) Emacs, TextPad, and Vim all have support available for Ruby.

W HY IS R UBY SPECIAL Easy to use scripting language with a lot of scope for deeper programming paradigms. For example Ruby can be used procedurally. #!/usr/bin/ruby print “Hello World\n” Or in an object oriented manner. Even full stack web applications development environment, Rails.

W HAT IS R AILS Rails is a web application development framework, written entirely in ruby. Rails is packaged as a ruby gem package “rails gem” Once “ruby” and “rubygems” are installed rails can be installed using a single command, gem will get all of rails dependancies.

R UBYS P EDIGREE Ruby is a child of Python, Smalltalk, Eiffel and Perl. Ruby was introduced in year It became Ruby 0.95 in year It became Ruby 1.1 alpha 0 in year It became Ruby in year It became Ruby in year 2000, and has not changed much since that time.

R UBY AND HER A NCESTORS

O THER M EMBERS OF THE R UBY FAMILY Several other tools exists within the ruby/bin directory ri – ruby information on classes, methods rake – A make tool for ruby gem - A Package management tool irb - Interactive Ruby Shell erb - Embedded Ruby scripts for Ruby active server type pages.

R UBYGEMS Ruby packages are generally distributed as gem files, i.e “activerecord gem” except for “rubygems” which is the package management tool.

R UBY I NFORMATION RI AND RD OC “ri” provides information on ruby classes RDoc generates HTML and ruby information. “ri” displays information about classes A browser can also be used to view generated HTML class documentation.

R UBY V S J AVA / C++ Ruby “Ruby”.length -5.0.abs C++ / Java strlen(“Ruby”); s.length(); abs(-5.0); number = Math.abs(numbe r);

A DVANTAGES USING R UBY AGAINST J AVA AND C++ Allow pass by code block Support Regular Expression Cleaner code No need to declare variables Simple syntax (semi-colon is optional) Every thing is an object, even a number. No need to call separate function. Simple object get/set methods declaration

A DVANTAGES ( CONTINUE ) Classes and modules are never closed. Better Access Control Dynamic access control Private methods never accessible directly by another object Portable and extensible with third-party library Interactive environment

D ISADVANTAGES USING R UBY AGAINST J AVA AND C++ No multiple inheritance However, Ruby offers multiple- inheritance-like capabilities Ruby is a scripting language However, Ruby can access to OS features, do same thing as Perl and Python

D ISADVANTAGES ( CONTINUE ) Different syntax and method definition style Return statement is optional Use of expression interpretation Braces not needed in control statements (if, while) Instance variable must preceded by Potential thread starvation in multi- threading Use in-process thread [non-native] However, it is lightweight and efficient

R EFERENCES “Programming Ruby” “The Pickaxe book”, Dave Thomas Ruby online tutorial, via your web browser Also O’Reilly’s “Ruby Cookbook”, good for getting ideas. Ruby’s home Ruby on Rails’ home

C ONCLUSION Free download for Unix/Windows Applications includes: X11 window manager, GUIs, managing server machines and databases. Want to know more: Visit

THANK YOU!!!