function php => ruby

Michael Houghton wrote:

Avo wrote:

Hi everyone :slight_smile:

I'm starting in Ruby, and first I would like to translate a fonction php I made into a ruby one. In php it's very slow due to the number of possibilities, the function is :

Hi Avo. How about

def boom   puts "why not just ask them what their password is" end

It's the pragmatic approach and it stands a greater chance of succeeding.

LOL! Much cleaner too.