Success is the natural consequence of consistently applying the basic fundamentals. The same is with Ruby. Learning Ruby’s fundamental ideas explained is necessary for our growth and development. We’ve learned some already and would like you to check this as well.
So, here what we’ve got:
- A new syntax that’s not shorter than what we can currently do, and is not really as expressive as the “classic” syntax.
- Now tools like parser and RuboCop have to account for the new syntax.
- A beginless range is good for DSL purpose.
- Ruby 1.9 hash literals
- Rational/Complex literals (
- Endless ranges (
- Safe navigation operator (
- Lambda literals (a.k.a. stabby lambdas)
- The ability to use symbols as procs
- Keyword parameters
- Squiggly heredocs (
- Frozen string literals pragma
- Making UTF-8 the default source code encoding
Which of them do you use? Check all of them explained in details here.
Let’s also explore and try to find out what Ruby code formatter to choose? Join us!