Vajad kellegagi rääkida?
Küsi julgelt abi LasteAbi
Logi sisse

Ruby (0)

5 VÄGA HEA
Punktid

Anton Teljutsenko
AAp-11
What is it?
Ruby  is a  dynamic , reflective, general-purpose  object -
oriented programming  language  that combines syntax 
inspired by  Perl with Smalltalk-like  features
It was also influenced by Eiffel and Lisp
Ruby has "Ruby License" and "BSD License"
Ruby was  first  designed and  developed  in the mid- 1990s  by 
Yukihiro "Matz" Matsumoto in  Japan
Ruby is cross -platform programming language
History
Ruby was conceived on  February  24, 1993 by Yukihiro 
Matsumoto who wished to create a new language that 
balanced functional programming with imperative 
programming
Ruby was disignet to be more  powerful  than Perl and more 
object-oriented than Python
The name "Ruby" was decided on during an online chat 
session between Matsumoto and Keiju Ishitsuka on 
February 24, 1993, before any  code  had been written for the 
language.
History
Initial y two  names  were proposed: "Coral" and "Ruby", with 
the  latter  being chosen by Matsumoto in a  later  email to 
Ishitsuka
The  first  public  release  of Ruby 0.95 was announced on 
Japanese  domestic  newsgroups on December 21, 1995
What it is look like
Code Example
# Output "I love Ruby"
say = "I love Ruby"
puts  say
# Output "I *LOVE* RUBY"
say['love'] = "*love*"
puts say.upcase
# Output "I *love* Ruby"
five   times
5.times { puts say }
Versions
Ruby 1.0
Ruby reached  version  1.0 on December 25, 1996.
Following the release of Ruby 1.3 in 1999 the first  English  
language mailing list ruby- talk  began, which signal ed a 
growing   interest  in the language outside of Japan. In 
September 2000, the first English language book 
Programming Ruby was  printed , which was later freely 
released  to the public, further widening the adoption of 
Ruby amongst English speakers.
Versions
Ruby 1.2
Ruby 1.2 was initial y released in December 1998
Ruby 1.4
Ruby 1.4 was initial y released in August 1999.
Ruby 1.6
Ruby 1.6 was initial y released in September 2000.
Ruby 1.8
Ruby 1.8 was initial y released in August 2003, and was stable for a long time. Ruby 1.8 is 
incompatible with Ruby 1.9.
Ruby on Rails
Around  2005, interest in the Ruby language surged in tandem with Ruby on Rails, a popular web 
application  framework written in Ruby. Rails is frequently credited with  making  Ruby " famous ".
Version
Ruby 1.9
Ruby 1.9 was released in December 2007. The latest stable version of the 
reference  implementation is 1.9.3 and is dual -licensed under the Ruby License 
and a BSD License.
Ruby 2.0
Ruby 1.9 will be followed by Ruby 2.0. Ruby 2.0 is rumored to be "100% 
compatible" with Ruby 1.9.3. As of October 2011, the plan is to have code 
freeze October 2012 and release February 2013.
Features
• Thoroughly object-oriented with inheritance, mixins and metaclasses
• Dynamic typing and  duck  typing
• Everything is an expression ( even  statements) and everything is executed imperatively (even declarations)
• Succinct and flexible syntax that minimizes syntactic noise and serves as a foundation for  domain - specific   languages
• Dynamic reflection and alteration of objects to facilitate metaprogramming
• Lexical closures, iterators and generators, with a  unique  block syntax
• Literal notation for arrays, hashes,  regular  expressions and  symbols
• Embedding code in strings (interpolation)
• Default arguments
• Four levels of variable  scope  ( globalclass , instance, and  local ) denoted by sigils or the  lack  thereof
• Garbage col ection
• First-class continuations
• Strict boolean coercion  rules  (everything is true except  false  and nil)
• Exception handling
•  Operator  overloading
•  Built -in support for  rational  numbers,  complex  numbers and arbitrary-precision arithmetic
• Custom dispatch behavior ( through  method_missing and const_missing)
•  Native  threads and cooperative fibers
• Initial support for Unicode and multiple  character  encodings ( stil   buggy as of version 1.9)
• Native plug-in API in C
• Interactive Ruby Shel  (a REPL)
• Centralized package  management  through RubyGems
• Implemented on al   major  platforms
• Large standard library
Thanks  for  watching

Document Outline

  • Slide 1
  • What is it?
  • History
  • History
  • What it is look like
  • Code Example
  • Versions
  • Versions
  • Version
  • Features
  • Thanks for watching
Vasakule Paremale
Ruby #1 Ruby #2 Ruby #3 Ruby #4 Ruby #5 Ruby #6 Ruby #7 Ruby #8 Ruby #9 Ruby #10 Ruby #11
Punktid 5 punkti Autor soovib selle materjali allalaadimise eest saada 5 punkti.
Leheküljed ~ 11 lehte Lehekülgede arv dokumendis
Aeg2013-01-31 Kuupäev, millal dokument üles laeti
Allalaadimisi 7 laadimist Kokku alla laetud
Kommentaarid 0 arvamust Teiste kasutajate poolt lisatud kommentaarid
Autor Eero Heinz Õppematerjali autor

Sarnased õppematerjalid

All Our Kin
95
pdf

All Our Kin

man' months. ward, hoping to find secure jobs. 10 ALL OUR KIN THE FL~TS 11 ?vlngnolia Va ters is J large, powerful, and resourceful woman with a regal composure. At forty-onc, the mother of eleven, MY HOME BASE rVlagnolia appeared no older than her striking, articulate, twenty- three-year-old daughter, Ruby Banks. IVlagnolia's four sisters The Jaeksons' home with its seven children (living at home) and two brothers and their families all live in The Flats and became a home base, a place where I was weleome to spend the each of her sistcr's children has received public aid. The second day, week after week, and where my year-old son Kcvin and I generation of ehildren born in The Flats, l-.!agnolia's grand- could sleep, usually sharing a bed with children in the house-

Antropoloogia
SISSEJUHATUS ITSSE
21
docx

SISSEJUHATUS ITSSE

Valdkonniti domineerivad programmeerimiskeeled : Universaalseim, välja arvatud tippkiirust nõudvad või embedded või brauseri- või operatsioonisüsteemi-rakendused: Java 17 Maksimaalset kiirust nõudvad rakendused, embedded ja süsteemprogrammeerimine: C, C++ Andmetöötlus ja skriptid ilma kasutajaliideseta: Python, Java, C, Go, Perl, Ruby Windowsi kasutajaliidesega rakenduste programmeerimine: C#, VisualBasic, C, (Java) Maci ja iPhone programmeerimine: Swift, Objective-C Androidi programmeerimine: Java, (C) ; Veebibrauseri programmeerimine: Javascript Veebirakenduse programmeerimine: PHP, Javascript, Python, Ruby, Java, Go, C , Perl . 10. HTTP on omaette protokoll TCP peal, mida kasutatakse veebilehtede, piltide, tekstifailide, zip failide, jsoni jne jne saatmiseks veebiserveri ja brauseri vahel.

Sissejuhatus infotehnoloogiasse
Sissejuhatus infotehnoloogiasse konspekt
138
docx

Sissejuhatus infotehnoloogiasse konspekt

Sissejuhatus infotehnoloogiasse 1. Loeng Algoritm on täpne samm-sammuline, kuid mitte tingimata formaalne juhend millegi tegemiseks. Näited: a. Toiduretsept. b. Juhend ruutvõrrandi lahendamiseks Algoritmiline probleem - probleem, mille lahenduse saab kirja panna täidetavate juhendite loeteluna. Programm on formaalses, üheselt mõistetavas keeles kirja pandud algoritm. Arvutid suudavad täita ainult programme. Analoogsüsteem  andmeid salvestatakse (peegeldatakse) proportsionaalselt  Näit: termomeeter, vinüülplaat, foto Digitaalsüsteem  (pidevad) andmed lõhutakse üksikuteks tükkideks, mis salvestatakse eraldi  Näit: CD, arvutiprogramm, kiri tähtede ja bittidena Ühelt teisele: digitaliseerimine  The three major comparisons of computers are:  Electronic computers versus Mechanical computers  Gen

Sissejuhatus infotehnoloogiasse
Sissejuhatus infotehnoloogiasse
29
docx

Sissejuhatus infotehnoloogiasse

) In computer programming, a software framework is an abstraction in which software providing generic functionality can be selectively changed by additional user-written code, thus providing application-specific software. Edasiarendamiseks ja ümbertegemiseks mõeldud terviklikud näiterakendused, levinud eeskätt „tüüpiliste“ andmebaasi-kesksete veebirakenduste jaoks. Igast hästi läbimõeldud rakendusest võib saada selline näiterakendus. Examples: Java Spring, Ruby on Rails, PHP Zend framework, Python Django, Javascript Angular, Microsoft .NET 9. nädal: Võrgurakendused ja interneti funktsioneerimine HTTP(Hypertext Transfer Protocol) 1992 HTTP on omaette protokoll TCP peal, mida kasutatakse veebilehtede, piltide, tekstifailide, zip failide, jsoni jne jne saatmiseks veebiserveri ja brauseri vahel. HTTP (Hypertext Transfer Protocol) is the set of rules for transferring files, such as text, graphic images, sound, video, and other multimedia files, on the

Sissejuhatus infotehnoloogiasse
Games Programming with Java and Java 3D
23
pdf

Games Programming with Java and Java 3D

Games Programming with Java and Java 3D Andrew Davison Dept. of Computer Engineering Prince of Songkla University HatYai, Songkhla 90112 E-mail: [email protected] Draft: 14th January 2003, #2 Abstract This article looks at the advantages and disadvantages of using Java and Java 3D for games programming. It assumes the reader is familiar with Java, but presents short overviews of gaming, the low-level APIs OpenGL and DirectX, and Java 3D. No programming examples are included here, although links to online code are supplied. 1. Background to Gaming Giving a definition for `computer game' is problematic, due to the wide range of game types. For example, the ArcadePod site (http://www.arcadePod.com) divides its hundreds of Java games into more than ten categories: 3D games, multiplayer, action

Java programmeerimine
Tarkvara kokkuvõte inglise keeles
36
doc

Tarkvara kokkuvõte inglise keeles

1. OBJECT-ORIENTED PARADIGM The Model •The model defines an abstract view to the problem. This implies that the model focuses only on problem related stuff and that you try to define properties of the problem. These properties include: 1 •the data which are affected and 2 •the operations which are identified by the problem. Object-oriented Paradigm •Everything is an object •A program is a bunch of objects telling each other what to do by sending messages •Each object has its own memory made up of other objects •Every object has a type •All objects of a particular type can receive the same messages Domain Model •A domain model does not represent the entire domain as it is in the real world. It includes only the concepts that are needed to support the application. Object •Is a partitioned area of memory where object code is stored •The area of memory is protected •This code can function relatively independently of other objects •Can be used b

Tehnoloogia
Referaat - Jackass
8
docx

Referaat - Jackass

Jackass Koostas: Klass: Origins The show developed from Big Brother Magazine, a skateboarding-related humor magazine that Jeff Tremaine, Dave Carnie, Rick Kosick and Chris Pontius all worked for, and featured regular contributions from Johnny Knoxville, Tyler Newton and Dave England, among others. The concept of Jackass dates back to 1999 when struggling-actor-turned-writer Johnny Knoxville birthed the idea to test different self defense devices on himself as the basis for an article. He pitched the idea to a couple of magazines and was turned down until meeting with Jeff Tremaine of Big Brother. Tremaine hired him as a journalist and convinced Johnny to videotape this idea and other stunts for stories. The footage, which involved Knoxville being ta

Inglise keel
Sissejuhatus infotehnoloogiasse eksami sooritamiseks
5
docx

Sissejuhatus infotehnoloogiasse eksami sooritamiseks

Turingi masin 1937 Universaalne masin suudab arvutada/järeldada kõike Turingi tees: kõike mida saab üldse mingi masinaga järeldada/arvutada, saab ka Turingi masinaga arvutada Parmenides (5 saj. e.m.a) kasutas pikki loogilisi põhjendusi. Zenon Elast (5 saj e.ma) paradoksid Sofistid-Sokrates (470-399 e.m.a), Platon (428/427 - 348/347e.m.a) Aristoteles: väidete struktuur kui iseseisev uurimisobjekt Süllogismi näited:1eeldus:iga koer on imetaja, 2eeldus mõned neljajalgsed on koerad, järeldus: mõned neljajalgsed on imetajad. Süllogism on väitlus, kus mingitest etteantud väidetest järeldub paratamatult uus väide. Aristotelese puhul alati kaks kategoorilist eeldust, üks kategooriline järeldus Stoikud uurisid, kuidas saab loogiliste sidesõnade (ja, ei, või, kui ...siis)abil lihtsamatest lausetest keerulisemaid kokku panna ja kuidas näidata selliselt moodustatud lausete õigsust. Ramon Llull 1235- 1315 müstik Peateos Ars magna, generalis et ultima; Leonardo da Vinci ca 15

Sissejuhatus infotehnoloogiasse




Meedia

Kommentaarid (0)

Kommentaarid sellele materjalile puuduvad. Ole esimene ja kommenteeri



Sellel veebilehel kasutatakse küpsiseid. Kasutamist jätkates nõustute küpsiste ja veebilehe üldtingimustega Nõustun