Ruby
Ruby
• Use by:
– Amazon, Twitter, Yahoo!, White Pages, Reddit
Interpreted
• C/C++
– Compiled to assembly/Run directly on machine
• Java
– Compiled to bytecode/Interpreted by JVM
• Ruby
– Interpreted (no compilation)
irb (Ruby interpreter)
• Java
– There is a maximum value for integers
– There is a maximum value for longs
• Ruby
– There is no maximum!
• Fixnum
• Bignum
– Why the distinction?
Declaring Strings
– Ruby
Loops
– Ruby
Constants
• Java
• Ruby
If Statements
• Java
• Ruby
elsif
• Java
• Ruby
Logical Operators
• Arrays
– More flexible than Java, can mix types
• Java
• Ruby
Writing Files
• Java
• Ruby