• Like
1.1 C2Ruby - ladrillos
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

1.1 C2Ruby - ladrillos

  • 107 views
Published

Lo basico de toda construcción son los fundamentos, en este caso ladrillos ( tipos de datos, operadores de comparacion, hola mundo )

Lo basico de toda construcción son los fundamentos, en este caso ladrillos ( tipos de datos, operadores de comparacion, hola mundo )

  • 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
107
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
2
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. C2 .. De C a Ruby 1.1 Ladrillos
  • 2. Compilador CWindows ○ Visual Studio ○ MinGW ○ gcc ( desde cywin )Unix / Linux ○ XCode (MacOS) ○ gcc ( en mac desde homebrew o macports)
  • 3. Interprete Ruby ( irb )Windows ○ http://rubyinstaller.org ○ http://www.ruby-lang.org/es/downloads ○ http://railsinstaller.orgUnix / Linux ○ https://rvm.io ○ https://github.com/sstephenson/rbenv
  • 4. El sistema operativo ¡Si IMPORTA!
  • 5. Tipos de Datos ( C ) ○ Enteros (int) int x = 10; ○ Flotantes (float) float x = 10.0f; ○ Reales (real o double float) real x = 10.0f; ○ Caracteres (char) char x = a; ○ Cadenas (char*) int x*; ○ Punteros (*) ○ Estructuras (struct)
  • 6. Tipos de Datos Objetos ( Ruby ) ○ Fixnum ○ Float ○ Bignum ○ Boolean ○ Complex ○ String ○ Symbol ○ List x = 10 (Fixnum) ○ Hash x = 10.0 (Float) x = "una cadena" funcion( x )
  • 7. Vamonos a pausa ¿Objetos? TODO en el mundo real puede ser representado por un OBJETO
  • 8. Vamonos a pausa ¿Objetos? The One Atributos ○ version ○ nombre_clave ○ sobre_carga_de_informacion Metodos ○ ver_codigo() ○ crear_codigo() ○ modificar_codigo( codigo_original ) ○ remover_codigo( codigo_a_remover )
  • 9. Hola Mundo de C#include <stdio.h>int main(int argc, char *argv){ printf("hola mundo"); return 0;}
  • 10. Hola Mundo de Ruby puts "hola mundo"
  • 11. Hola Mundo de Ruby (version corta) p "hola mundo"
  • 12. Operadores● Aritmeticos ( +, -, *, /, %, ** )● Booleanos ( &&, ||, ! )● Asignacion ( =, +=, -=, *=, /=, %=, ||=, &&=, => )● Comparacion ( >, >=, <, <=, ==, !=, =~ )● Comparacion a nivel Bit ( &, | )
  • 13. LETS PLAY