Ruby (talaffuzi: ['ru:bɪ]; tarjimasi „yoqut“) koʻplab dasturlash paradigmalarini qoʻllab-quvvatlaydigan interpretatsiyalanadigan yuqori pogʻonali dasturlash tilidir. 1990-yillar oʻrtalarida Yukihiro Matsumoto tomonidan yaratilgan.

Ruby
Paradigmalari Multi-paradigmali: funksional, imperativ, obyektga yoʻnaltirilgan
Muallifi Yukihiro Matsumoto
Tuzilgan yili 1995 (29 yil avval) (1995)
Operatsion tizim Kross-platformali
Litsenziya Ruby License
Fayl kengaytmalari .rb
Vebsayt ruby-lang.org
Bunga asos boʻlgan tillar
Ada,[1] Basic,[2] C++,[1] CLU,[3] Dylan,[3]
Eiffel,[1] Lisp,[3] Lua, Perl,[3] Python,[3] Smalltalk[3]
Buning asosida tuzilgan tillar
Clojure, CoffeeScript, Crystal, D, Elixir, Groovy, Julia,[4] Mirah, Nu,[5] Ring,[6] Rust,[7] Swift[8]

Versiyalar xronologiyasi tahrir

Versiya Eng oxirgi versiyasi Chiqarilgan sana
Old version, no longer maintained: 1.0 1996-12-25[9]
Old version, no longer maintained: 1.8 1.8.7-p375[10] 2003-08-04[11]
Old version, no longer maintained: 1.9 1.9.3-p551[12] 2007-12-25[13]
Old version, no longer maintained: 2.0 2.0.0-p648[14] 2013-02-24[15]
Old version, no longer maintained: 2.1 2.1.10[16] 2013-12-25[17]
Old version, no longer maintained: 2.2 2.2.10[18] 2014-12-25[19]
Old version, no longer maintained: 2.3 2.3.8[20] 2015-12-25[21]
Old version, no longer maintained: 2.4 2.4.10[22] 2016-12-25[23]
Eski versiya (qoʻllab-quvvatlanadi): 2.5 2.5.8[24] 2017-12-25[25]
Eski versiya (qoʻllab-quvvatlanadi): 2.6 2.6.6[26] 2018-12-25[27]
Eski versiya (qoʻllab-quvvatlanadi): 2.7 2.7.2[28] 2019-12-25[29]
Joriy versiya: 3.0 3.0.0[30] 2020-12-25[31]
Izoh:
Eski versiya
Eski versiya (qoʻllab-quvvatlanadi)
Eng oxirgi versiya
Eng oxirgi sinov versiyasi
Kelgusidagi reliz

Misollar tahrir

puts 'Hello World!'
# Everything, including a literal, is an object, so this works:
199.abs # => 199
'ice is niceʼ.length # => 11
'ruby is cool.'.index('u') # => 1
„Nice Day Isnʼt It?“.downcase.split('').uniq.sort.join
# => „ '?acdeinsty
print 'Please type name >'
name = gets.chomp
puts Hello #{name}.“
puts 'Give me a number'
number = gets.chomp
puts number.to_i
output_number = number.to_i + 1
puts output_number.to_s + ' is a bigger number.'


Manbalar tahrir

  1. 1,0 1,1 1,2 Cooper, Peter. Beginning Ruby: From Novice to Professional, 2nd, Beginning from Novice to Professional, Berkeley: APress, 2009 — 101 bet. ISBN 978-1-4302-2363-4. „To a lesser extent, Python, LISP, Eiffel, Ada, and C++ have also influenced Ruby.“ 
  2. „Reasons behind Ruby“. Ruby Conference 2008. Confreaks TV. 2020-yil 15-yanvarda asl nusxadan arxivlangan. Qaraldi: 2019-yil 25-iyun.
  3. 3,0 3,1 3,2 3,3 3,4 3,5 Bini, Ola. Practical JRuby on Rails Web 2.0 Projects: Bringing Ruby on Rails to Java. Berkeley: APress, 2007 — 3 bet. ISBN 978-1-59059-881-8. „It draws primarily on features from Perl, Smalltalk, Python, Lisp, Dylan, and CLU.“ 
  4. „Julia 1.0 Documentation: Introduction“. 2018-yil 16-avgustda asl nusxadan arxivlangan. Qaraldi: 2018-yil 6-oktyabr.
  5. Burks, Tim „About Nu™“. Programming Nu™. Neon Design Technology, Inc.. Qaraldi: 2011-yil 21-iyul.
  6. Ring Team. „Ring and other languages“. ring-lang.net. ring-lang (2017-yil 3-dekabr).
  7. „Influences - The Rust Reference“. The Rust Reference. Qaraldi: 2023-yil 18-aprel.
  8. Lattner, Chris „Chris Lattner's Homepage“. Chris Lattner (2014-yil 3-iyun). — „The Swift language is the product of tireless effort from a team of language experts, documentation gurus, compiler optimization ninjas, and an incredibly important internal dogfooding group who provided feedback to help refine and battle-test ideas. Of course, it also greatly benefited from the experiences hard-won by many other languages in the field, drawing ideas from Objective-C, Rust, Haskell, Ruby, Python, C#, CLU, and far too many others to list.“. Qaraldi: 2014-yil 3-iyun.
  9. „The Ruby Community's Christmas Releases“. www.rubyinside.com. [sayt ishlamaydi]
  10. „A Patch in Time: Securing Ruby“.
  11. „ruby-1.8.0 released!“. www.ruby-lang.org.
  12. „Ruby 1.9.3-p551 Released“. www.ruby-lang.org.
  13. „Ruby 1.9.0 Released“. www.ruby-lang.org.
  14. „Ruby 2.0.0-p648 Released“. www.ruby-lang.org.
  15. „Ruby 2.0.0-p0 is released“. www.ruby-lang.org.
  16. „Ruby 2.1.10 Released“. www.ruby-lang.org.
  17. „Ruby 2.1.0 is released“. www.ruby-lang.org.
  18. „Ruby 2.2.10 Released“. www.ruby-lang.org.
  19. „Ruby 2.2.0 Released“. www.ruby-lang.org.
  20. „Ruby 2.3.8 Released“. www.ruby-lang.org.
  21. „Ruby 2.3.0 Released“. www.ruby-lang.org.
  22. „Ruby 2.4.10 Released“. Ruby Programming Language (2020-yil 31-mart). Qaraldi: 2020-yil 1-aprel.
  23. „Ruby 2.4.0 Released“. www.ruby-lang.org.
  24. „Ruby 2.5.8 Released“. Ruby Programming Language (2020-yil 31-mart). Qaraldi: 2020-yil 1-aprel.
  25. „Ruby 2.5.0 Released“. www.ruby-lang.org.
  26. „Ruby 2.6.6 Released“. Ruby Programming Language (2020-yil 31-mart). Qaraldi: 2020-yil 1-aprel.
  27. „Ruby 2.6.0 Released“. www.ruby-lang.org.
  28. „Ruby 2.7.2 Released“. Ruby Programming Language (2020-yil 2-oktyabr). Qaraldi: 2020-yil 2-oktyabr.
  29. „Ruby 2.7.0 Released“. www.ruby-lang.org.
  30. „Ruby 3.0.0 Released“. Ruby Programming Language (2020-yil 25-dekabr). Qaraldi: 2020-yil 25-dekabr.
  31. „Ruby 3.0.0 Released“. www.ruby-lang.org.

Adabiyotlar tahrir

  • Black, David; Leo, Joseph (15–mart 2019–yil), The Well-Grounded Rubyist (uchinchi-nashr), Manning Publications, 584-bet, ISBN 978-1617295218{{citation}}: CS1 maint: date format ()
  • Metz, Sandi (22–avgust 2018–yil), Practical Object-Oriented Design: An Agile Primer Using Ruby (ikkinchi-nashr), Addison-Wesley Professional, 288-bet, ISBN 978-0-13-445647-8{{citation}}: CS1 maint: date format ()
  • Cooper, Peter (12–iyul 2016–yil), Beginning Ruby: From Novice to Professional (uchinchi-nashr), Apress, 492-bet, ISBN 978-1484212790{{citation}}: CS1 maint: date format ()
  • Carlson, Lucas; Richardson, Leonard (3–aprel 2015–yil), Ruby Cookbook: Recipes for Object-Oriented Scripting (ikkinchi-nashr), O'Reilly Media, 963-bet, ISBN 978-1449373719{{citation}}: CS1 maint: date format ()
  • Fulton, Hal; Arko, André (2–mart 2015–yil), The Ruby Way: Solutions and Techniques in Ruby Programming (uchinchi-nashr), Addison-Wesley Professional, 816-bet, ISBN 978-0-321-71463-3{{citation}}: CS1 maint: date format ()
  • Thomas, Dave; Fowler, Chad; Hunt, Andy (7–iyul 2013–yil), Programming Ruby 1.9 & 2.0: The Pragmatic Programmers' Guide (toʻrtinchi-nashr), Pragmatic Bookshelf, 888-bet, ISBN 978-1937785499{{citation}}: CS1 maint: date format ()
  • McAnally, Jeremy; Arkin, Assaf (28–mart 2009–yil), Ruby in Practice (birinchi-nashr), Manning Publications, 360-bet, ISBN 978-1933988474{{citation}}: CS1 maint: date format ()
  • Flanagan, David; Matsumoto, Yukihiro (25–yanvar 2008–yil), The Ruby Programming Language (birinchi-nashr), O'Reilly Media, 446-bet, ISBN 978-0-596-51617-8{{citation}}: CS1 maint: date format ()
  • Baird, Kevin (8–iyun 2007–yil), Ruby by Example: Concepts and Code (birinchi-nashr), No Starch Press, 326-bet, ISBN 978-1593271480{{citation}}: CS1 maint: date format ()
  • Fitzgerald, Michael (14–may 2007–yil), Learning Ruby (birinchi-nashr), O'Reilly Media, 255-bet, ISBN 978-0-596-52986-4{{citation}}: CS1 maint: date format ()

Havolalar tahrir