Ruby

From Soyjak Wiki, the free ensoyclopedia
Jump to navigationJump to search
Rubies are rubies, similarly to how water is made of Dihydrogen Monoxide.

Ruby, also known as Redstone to retards, is in between gem and iron. In other words, a Gem that needs improvement.

While iron are mostly used to describe mid-tier or "pretty good" posts, rubies oftentimes are would-be gems that have just a few fallacies or were left unfinished. If someone calls something you made/posted "ruby", take it as a compliment, but know that you can work to make it the most glistening gemerald at the zenith of aryanheaven.

Ruby the programming language[edit | edit source]

The average Ruby user looks like this.

Aside from being a mid-tier-but-potentially-shiny gem, Ruby is also a well-known programming language. It was created in the 1990s by Yukihiro Matsumoto with the goal of making a genuinely object-oriented, easy-to-use scripting language. Ruby is designed to be readable, human-friendly, and lets you write code that almost feels like natural language, similar to Python. Unlike other languages like C# that compile down into intermediate bytecode, Ruby is run as an interpreted language, which means you can write code and see results immediately. Probably the most famous thing built with Ruby is Ruby on Rails, a web development framework that powers sites such as Twitch, GitHub, Shopify, and many other big sites. Rails made it easy to quickly build and scale web apps with a strong emphasis on convention over configuration. Ruby is dynamically typed, and does not support type annotations, ironically making it kind of coal.

Ruby is best known for:

  • Everything is an object. Even numbers like 5 are objects with methods (e.g. 5.even? #=> true).
  • Duck typing over strict types. Ruby doesn’t care about the type of an object as long as it responds to the right methods (the “if it quacks like a duck…” philosophy).
  • Metaprogramming heaven. Ruby lets you define methods on the fly, reopen classes, and even modify core behavior—giving developers a lot of power (and responsibility).
  • Focus on developers. The language was designed to make code feel natural and expressive rather than rigid or boilerplate-heavy.
  • Vibrant ecosystem. Ruby has a rich package manager called RubyGems, with thousands of libraries (“gems”) for everything from web servers to game development. Ironically, RubyGems is just as gemmy as an Ruby.

Example[edit | edit source]

# frozen_string_literal: true

module SoyjakParty
  class Tranny
    # Determines whether the tranny should ack based on a given probability.
    # @param ack_probability [Integer] 0–100 chance of acking
    # @return [Boolean] true if roll < ack_probability, else false
    def self.should_ack?(ack_probability)
      ack_probability = [[ack_probability, 0].max, 100].min
      roll = rand * 100
      roll < ack_probability
    end

    # Main function that decides whether to ack or print "TRANS RIGHTS ARE HUMAN RIGHTS!!!!".
    def self.run
      if should_ack?(41)
        raise "ACK!!!!"
      else
        puts "TRANS RIGHTS ARE HUMAN RIGHTS!!!!!!!!"
      end
    end
  end
end

# Run the program
SoyjakParty::Tranny.run

Everything is an object example[edit | edit source]

puts 5.class        # => Integer
puts 5.even?        # => true
puts true.class     # => TrueClass
puts nil.nil?       # => true
puts "hi".upcase    # => "HI"


Ruby is part of a series on
Language & Dialect
Visit the Soyspeak portal for more.

Soyspeak [-+]

Main article: Soyspeak

ThoughKeyedNamesNonsenseInsultsBumoWordfilter'oy

Phrases [-+]
Copypastas [-+]
Miscellaneous [-+]
IRC

Ruby is part of a series on Computer Science.

Languages Low Level AssemblyCC++C#Holy CRust

High Level JavaGoPHPPythonSQLBashJavaScriptPowerShellActionScriptScratchRubyLua

Markup HTMLCSSSVGXML
Software Imageboards nusoiVichanYotsubaOpenYotsuba

OSes WindowsLinuxAndroidTempleOS

Other BabybotMcChallengeSystemdMS PaintJS PaintPhotoshopFlash
AI

ChatGPTGeminiGrokVibe codingGenerative AIStable Diffusion

More SoyGNUCGIDDoSGame developmentPiracyRegexDoxingMicrosoftAppleGoogleDataminingWebPArtificial soyduelRatio duelingCustomizationRicingFSLWindows debloating
Mineral rating system:
Really Good Good Neutral Bad Awful