- Ruby use requires in place of import (they request not order
)
- Brackets are not mandatory in class and methods
- All member variables are private
- JAVA DOC turns to RDOC
- XML changed to YAML
- Null modified to Nil (So no null pointer exception
)
- Every thing is object, no primitive type
- } bracket don’t end class or method. end key word do it. (time consuming)
- Flavor of interface found in Mixin
- No method overloading (Be happy they gives at least they have overriding)
- Syntax for Instance creation: a = A.new(); (Class and new exchanged there place. Oh! no Class before the instance A)
- No compilation (:))
- == and equals are just opposite (confusing :-S)
- Coding convention for method/variable is not like doThis, its do_this
- # used for for commented code (not //)
- For global variable @variable not this.variable
References:
By: Md. Shahjalal