Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Impressing Ruby example

Tags:

ruby

in some days I am giving a talk about a Rails project at university and I want to introduce the audience to Ruby.

I want to show them one or two really nice code examples to demonstrate how awesome Ruby is.

Do you know a good example?

Best regards

like image 297
brainfck Avatar asked Nov 17 '09 19:11

brainfck


1 Answers

Show them how you transform 50 ugly lines of dirty code in 3 clean leans of very easy to understand code. (Being the first line a comment)

Do not show how cool you are with ruby. But how cool they will be if they use ruby :)

like image 112
graffic Avatar answered Sep 20 '22 02:09

graffic