Archives For Programming



The name says it all! Find an open source project to contribute, no matter your language of choice. Contribute to DevOps tools, package managers, or your favourite programming language.

If you want to ensure the language you’re learning is being used in today’s job market, the TIOBE Index is likely your most reliable source. If you’re heading to college, don’t worry, any reasonable STEM program teaches languages like C, C++, Python, C# and/or Java. Even today’s popular coding bootcamps, cover TIOBE ranked languages like Python, Ruby and JavaScript.

Hopefully, I can narrow your search for an exciting open source Ruby project that can either help you level up your skills or keep you up-to-date with the language’s latest trends. If not, I’m sure my links can lead you to some interesting projects in other languages as well.

Trending Ruby Projects on GitHub

def minilang(str)
  stack = []
  register = 0
  str.split.each do |item|
    if item.to_i != 0
      register = item.to_i
    end
    case item
    when "PUSH"
      stack << register
    when "ADD"
      register = register + stack.last
      stack.pop
    when "SUB"
      register = register - (stack.last)
      stack.pop
    when "MULT"
      register = register * stack.last
      stack.pop
    when "DIV"
      register = register / stack.last
      stack.pop
    when "MOD"
      register = register % stack.last
      stack.pop
    when "POP"
      register = stack.last
      stack.pop
    when "PRINT"
      puts register
    end
  end
  nil
end