Ruby Time!!!: Una Introducción a Ruby

  • 248 views
Uploaded on

 

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
248
On Slideshare
0
From Embeds
0
Number of Embeds
7

Actions

Shares
Downloads
3
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. RUBYTIME!!!Kevin Martínez
  • 2. ...I want to minimize my effort inprogramming.Yukihiro Matsumoto
  • 3. P . O . O.(Todo es un objeto)
  • 4. 10.times{ puts “hello word”}“hola, soy una cadena”.length[8, 3, 4].sort
  • 5. Azúcar(Sintáctica)
  • 6. saludo = trueputs “hola” if (saludo == true)edad = 30p (“eres mayor”) unless edad < 181.upto(5).each{|x| puts “hi” + x.to_s}(a..z).to_a
  • 7. CODINGKATATIME!!!
  • 8. Fizz Buzz(Stage 1)Return “fizz”, “buzz” or “fizzbuzz”.For a givennatural number greater zero return“fizz” if the number is dividable by 3“buzz” if the number is dividable by 5“fizzbuzz” if the number is dividable by 151 -> 1 5 -> buzz2 -> 2 6 -> fizz3 -> fizz 10 -> buzz4 -> 4 15 -> fizzbuzz
  • 9. Fizz Buzz(Stage 2)A number is fizz if it is divisible by 3 or if ithas a 3 in it.A number is buzz if it is divisible by 5 or if ithas a 5 in it31 -> fizz 52 -> buzz 35 -> fizzbuzz
  • 10. Ecosistema
  • 11. Documentación
  • 12. Ruby-doc.orgmislav.uniqpath.com/poignant-guideRubymonk.comCodeacademy.comCodeschool.comCodeEvalcodersdojo.orgcodingdojo.orgetnassoft.com/biblioteca
  • 13. Gracias@n4utilius