A24 SLOWBURN KINO Space Station 13 Gamenight: Every Saturday and Sunday at 11 AM CST
INSTALLATION GUIDE: https://soyjak.st/ss/thread/1.html#3 LINUX INSTALLATION GUIDE: Space_Station_13/List_of_guides/Playing_on_Linux
align=center >*honks

Ruby

From Soyjak Wiki, the free ensoyclopedia
Jump to navigationJump to search


Ruby, also known as Redstone to retards, is a variant of corundum (crystalline form of aluminum oxide) containing chromium, best known for it's renowned shade of red (and occasionally pink) it is found in.

On soyjak.party, a ruby is a mineral rating between gem and iron. In other words, an iron that needs polishing in order to reach gem status.

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 (ev&doe you can use a jit to make code run faster), 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. It doesn't take that much to translate Pseudocode into Ruby.
  • Vibrant ecosystem. Ruby has a rich package manager called RubyGems, with thousands of libraries (“gems”) for everything from web servers to game development. RubyGems is just as gemmy as a 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"

Psuedocode to Ruby example[edit | edit source]

Psuedocode[edit | edit source]

Do three times 
    print "IF I SAY THIS THREE TIMES THEN YWNBAW"

Ruby[edit | edit source]

3.times do
    puts "IF I SAY THIS THREE TIMES THEN YWNBAW"
end
Ruby is part of a series on
Language & Dialect
Visit the Soyspeak portal for more.

Soyspeak [-+]

Main article: Soyspeak

ThoughKeyedNamesNonsenseInsultsBumoWordfilter'oy

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

Ruby is part of a series on Computing

LOW LEVEL

AssemblyCC++C#Holy CRust

HIGH LEVEL

JavaGoPHPPythonSQLBashJavaScriptPowerShellActionScriptScratchRubyLua

MARKUP

HTMLCSSSVGXML

IMAGEBOARDS

nusoiVichanYotsubaOpenYotsuba

OS

WindowsLinuxAndroidTempleOS

MISC

BabybotMcChallengeSystemdMS PaintJS PaintPhotoshopFlashIRCAd blockingDark Web

AI

ChatGPTGeminiGrokVibe codingGenerative AIStable Diffusion

Mineral rating system:
Really Good Good Neutral Bad Awful

 

Other