Philosophy of Ruby
“Matsumoto has said that Ruby is designed for programmer productivity and fun, following the principles of good user interface design. He stresses that systems design needs to emphasize human, rather than computer, needs.”
What is Ruby?
- Dynamic
- Reflective
- General purpose
- Open source
- supports multiple programming paradigms
Interpreted scripting language
- Execute code on the fly (dynamic)
- Ability to make calls to OS directly
Quick and easy
- Simple and consistent syntax
- Easy to understand and learn
- Variable declarations are unnecessary
- Variables have no type (dynamic typed)
Automatic Memory Management
- No need to release allocated memory
- No memory leaks
- Fewer crashes or errors
Fully Object oriented
- Everything is an object.
- Class, Object, Inheritance etc.
- Singleton methods
- Mixins instead of multiple inheritance
INSTAllation
- Source code
- Third party tool
- Package management system
Arithmetic Operators
comparison operators
Assignment operators
Parallel assignment
bitwise operators
a = 60 or 0011 1100
b = 13 or 0000 1101
logical operators
ternary operators
String methods
- case methods
- operator methods
- other useful methods
- string operations
Regex
Sequence of characters that helps you match or find other strings
- //.class => Regexp
- Syntax
- Character classes
- Special character classes
- Repetition cases
- Options
Contact
- Skype id: dattdongare
- Mail id: datt@cart91.com
- Mobile: 8446353453