Last month brought the release of Ruby on Rails 6.0. Looking back on the past 12 months of Ruby / Ruby on Rails development it’s clear that DHH was right in saying that ‘Ruby isn’t dying, it’s maturing’
In addition to MVC, Rails emphasizes the use of other well-known software engineering patterns and paradigms, including convention over configuration (CoC), don’t repeat yourself (DRY), and the active record pattern.
Rails 5 brought us lovely goodies like:
- Active Storage, a modern approach of uploading files straight to the cloud.
- Redis cache-store
- HTTP/2 Early Hints
- Credentials, a new and secure way to store secrets
Rails 6 brings some wonderful additions to the framework such as
- Action Mailbox- a new way to serve to route incoming emails to controller-like mailboxes for processing in Rails
- Action Text- the Trix editor now is automatically in the framework
- Parallel Testing - allows you to parallelize your test using forks or threads (We’ve been doing this for years through parallel_tests)
- Action Cable Testing
These release notes cover only the major changes, so be sure to checkout out various bug fixes and changes and read through the change logs or list of commits on Github at the official Rails repo.
Ruby has gone through a heap of significant changes the past 12 months. It shows no sign of going by the wayside however seems to be growing and evolving. A new version of Ruby was released just in August 2019 and gave a heap of performance improvements. JIT implementation of a JIT (Just-In-Time) compiler (heaps of future improvements to be made here) was released last December. Ruby has improved performance up to 1.7x, apart from the 5–10% performance improvements from Ruby 2.5.0. Not too shabby really.