Follow TV Tropes

Following

History MediaNotes / Ruby

Go To

OR

Is there an issue? Send a MessageReason:
Page was movedfrom Useful Notes.Ruby to Media Notes.Ruby. Null edit to update page.
Is there an issue? Send a MessageReason:
None


[[gray:c]] [[cinnamon:=]] [[green:"hi"]]\\

to:

[[gray:c]] [[cinnamon:=]] [[green:"hi"]]\\[[green:"Bob"]]\\



[[cinnamon:puts]] [[green:"Hello and "]][[cinnamon:+]][[gray:c]]\\
''[[blue:#Outputs Hello and hi]]''@@

to:

[[cinnamon:puts]] [[green:"Hello and [[green:"Hello, "]][[cinnamon:+]][[gray:c]]\\
''[[blue:#Outputs Hello and hi]]''@@Hello, Bob]]''@@

Added: 125

Changed: 141

Is there an issue? Send a MessageReason:
None


It is most commonly used with the ''Rails'' framework to make dynamic webpages; this is combo is also known as Ruby on Rails.



Ruby was released in 1995


to:

Ruby was released in 1995

1995 on Japanese newsgroups by Yukihiro "Matz" Matsumoto. He wanted a truly [=OOP=] Programming language that was fully featured and easy to use.

Is there an issue? Send a MessageReason:
None


[[folder:Other]]

[[/folder]]
Is there an issue? Send a MessageReason:
None


* Website/Twitch

to:

* Website/TwitchWebsite/{{Twitch}}
Is there an issue? Send a MessageReason:
None

Added DiffLines:

* Website/Twitch
* [[https://YellowPages.com Yellow Pages]]
Is there an issue? Send a MessageReason:
None


[[https://github.com/github Github]] uses Ruby as one of its top languages.
[[https://Shopify.com Shopify]]
[[https://Kickstarter.com Kickstater]]
[[https://Hulu.com Hulu]]

to:

* [[https://github.com/github Github]] uses Ruby as one of its top languages.
* [[https://Shopify.com Shopify]]
* [[https://Kickstarter.com Kickstater]]
* [[https://Hulu.com Hulu]]

Added: 121

Changed: 84

Is there an issue? Send a MessageReason:
None


[[folder:Media]]

to:

[[folder:Media]]
[[folder:Websites]]
[[https://github.com/github Github]] uses Ruby as one of its top languages.
[[https://Shopify.com Shopify]]
[[https://Kickstarter.com Kickstater]]
[[https://Hulu.com Hulu]]


Added DiffLines:

[[folder:Other]]

[[/folder]]
Is there an issue? Send a MessageReason:
None


@@a [[cinnamon:=]] [[red:10]]\\

to:

@@a @@[[gray:a]] [[cinnamon:=]] [[red:10]]\\
Is there an issue? Send a MessageReason:
None


@@a = 10\\
b = 7\\
c = "hi"\\
puts a+b\\
#Outputs 17\\
puts b+c\\
#Throws an Error\\
puts "Hello and "+c\\
#Outputs Hello and hi@@

to:

@@a = 10\\
b = 7\\
c = "hi"\\
puts a+b\\
#Outputs 17\\
puts b+c\\
#Throws
[[cinnamon:=]] [[red:10]]\\
[[gray:b]] [[cinnamon:=]] [[red:7]]\\
[[gray:c]] [[cinnamon:=]] [[green:"hi"]]\\
[[cinnamon:puts]] [[gray:a]][[cinnamon:+]][[gray:b]]\\
''[[blue:#Outputs 17]]''\\
[[cinnamon:puts]] [[gray:b]][[cinnamon:+]][[gray:c]]\\
''[[blue:#Throws
an Error\\
puts "Hello
Error]]''\\
[[cinnamon:puts]] [[green:"Hello
and "+c\\
#Outputs
"]][[cinnamon:+]][[gray:c]]\\
''[[blue:#Outputs
Hello and hi@@hi]]''@@
Is there an issue? Send a MessageReason:
None


Ruby is an [[https://en.wikipedia.org/wiki/Imperative_programming Imperative]], [[https://en.wikipedia.org/wiki/Programming_paradigm#Support_for_multiple_paradigms Multi-Paradigm]], [[https://en.wikipedia.org/wiki/Strong_and_weak_typing Strongly]] and [[https://en.wikipedia.org/wiki/Type_system#DYNAMIC Dynamically Typed]] Programming Language.

to:

Ruby is an [[https://en.wikipedia.org/wiki/Imperative_programming Imperative]], [[https://en.wikipedia.org/wiki/Programming_paradigm#Support_for_multiple_paradigms Multi-Paradigm]], [[https://en.wikipedia.org/wiki/Strong_and_weak_typing Strongly]] and [[https://en.wikipedia.org/wiki/Type_system#DYNAMIC Dynamically Typed]] Programming Language.
UsefulNotes/ProgrammingLanguage.
Is there an issue? Send a MessageReason:
None

Added DiffLines:

[[quoteright:250:https://static.tvtropes.org/pmwiki/pub/images/ruby_1.png]]

Ruby is an [[https://en.wikipedia.org/wiki/Imperative_programming Imperative]], [[https://en.wikipedia.org/wiki/Programming_paradigm#Support_for_multiple_paradigms Multi-Paradigm]], [[https://en.wikipedia.org/wiki/Strong_and_weak_typing Strongly]] and [[https://en.wikipedia.org/wiki/Type_system#DYNAMIC Dynamically Typed]] Programming Language.

You can try out Ruby for yourself [[https://www.tutorialspoint.com/execute_ruby_online.php here]].

!!History

Ruby was released in 1995


[[hardline]]

[[folder:Code Examples]]
!!!Hello Ruby
@@[[cinnamon:puts]] [[green:"Hello World!"]]@@
\\
This program outputs Hello World!

!!!Variable Declaration and Concatenation
@@a = 10\\
b = 7\\
c = "hi"\\
puts a+b\\
#Outputs 17\\
puts b+c\\
#Throws an Error\\
puts "Hello and "+c\\
#Outputs Hello and hi@@
\\

!!!For Loops
@@[[cinnamon:for]] [[gray:i]] [[cinnamon:in]] [[red:0]][[gray:..]][[red:9]]\\
    [[cinnamon:puts]] [[gray:i]]\\
[[cinnamon:end]]@@
\\

[[/folder]]


!!Works Written in Ruby

[[folder:Media]]

[[/folder]]

----

Top