Skip to content

Instantly share code, notes, and snippets.

View magicmarkker's full-sized avatar

Mark Hunt magicmarkker

  • Philadelphia, PA
View GitHub Profile
@ryansobol
ryansobol / gist:5252653
Last active February 23, 2025 06:28
15 Questions to Ask During a Ruby Interview

Originally published in June 2008

When hiring Ruby on Rails programmers, knowing the right questions to ask during an interview was a real challenge for me at first. In 30 minutes or less, it's difficult to get a solid read on a candidate's skill set without looking at code they've previously written. And in the corporate/enterprise world, I often don't have access to their previous work.

To ensure we hired competent ruby developers at my last job, I created a list of 15 ruby questions -- a ruby measuring stick if you will -- to select the cream of the crop that walked through our doors.

What to expect

Candidates will typically give you a range of responses based on their experience and personality. So it's up to you to decide the correctness of their answer.

@mkarliner
mkarliner / aes_crypt.rb
Created March 22, 2013 11:17
Using OpenSSL with Ruby to do AES encryption
# This module for using AES encryption with ruby from
# http://www.brentsowers.com/2007/12/aes-encryption-and-decryption-in-ruby.html
require 'openssl'
require "base64"
module AESCrypt
# Decrypts a block of data (encrypted_data) given an encryption key
# and an initialization vector (iv). Keys, iv's, and the data
# returned are all binary strings. Cipher_type should be
# "AES-256-CBC", "AES-256-ECB", or any of the cipher types