Just a fun little list I worked up from some of my favorite movies. Can you guess the movie quotes from the code? Add your own in the comments, or translate these (from Ruby) into your favorite language and I’ll link to your post here.
Movie #1:
it = It.new it.puts(:the_lotion, it.skin) it.basket << :the_lotion
Movie #2:
class Developer attr :work_schedule # [[:day, "reason"]] end peter = Developer.new peter.work_schedule << [:Saturday, "that'd be great...mmkay?"]
Movie #3:
class You
attr :so_money
def knows_it?
false
end
def is_money
@so_money
end
end
y = You.new
y.so_money = true
y.knows_it?
Movie #4:
["yippie-kay-yay", "rekcufrehtom".reverse].join(’ ‘)
Movie #5:
class Snake
def initialize(kind, location)
@kind, @location = kind, location
end
def pwn
self.destroy
end
end
class SamuelJackson
def self.getting_tired_of(whatever)
whatever.each do |thing|
thing.pwn
end
end
end
r = 50 + rand(100)
snakes = []
for(i = 1; i <= r; i++) {
snakes << Snake.new("motherfu" + "ckin", :plane)
}
SamuelJackson.getting_tired_of(snakes)
Movie #6:
class Agent
def initialize(full_name)
@first_name, @last_name = *full_name.split(' ')
end
def to_s
"#{@last_name}, #{@first_name} #{@last_name}"
end
end
agent = Agent.new("James Bond")
puts agent
Movie #7:
Terminator.will_return = :later
Movie #8:
class Actor
def initialize(name)
@name = name
end
def can_handle?(abstract_concept)
if @name == "Tom Cruise" && abstract_concept == 'truth'
return false
else
return true
end
end
end
t = Actor.new("Tom Cruise")
t.can_handle?('truth')
Originally inspired by a funny one-liner in this post.
Add your own below and I’ll update this post with the best!

lol! Great as the programming could be!