Exploding Rails
- Добавил: literator
- Дата: 21-12-2021, 22:08
- Комментариев: 0
![Exploding Rails](/uploads/posts/2021-12/1640113789_721__xploding_rails.jpg)
Автор: Ryan Bigg
Издательство: Leanpub
Год: 2019-03-29
Страниц: 169
Язык: английский
Формат: pdf (true), mobi, epub
Размер: 10.16 MB
Build a maintainable Rails application by using next-generation gems from the dry-rb and rom-rb suite. This book shows you how to easily bring those gems into the web framework you know and... well, the one you know.
Learn how to build a maintainable Rails application by using the rom-rb and dry-rb set of gems to your advantage. Move away from messy, traditional Rails code and move towards crisp, clean code. The default structure of Rails applications hasn't changed all that much in over a decade. And with good reason: this directory structure makes it easy to jump into building a Rails application. While I agree that this way is still extremely simple and great for getting started within a Rails application, I do not agree that this is the best way to organise a Rails application in 2018 with long-term maintenance in mind. A decade of Ruby development has produced some great alternatives to Rails' MVC directory structure that are definitely worthwhile to consider.
One alternative can be found in the combination of the rom-rb and dry-rb set of gems. The `rom-rb` gems allow us to interact with a database with just as much ease as Active Record, but with the added benefit that persistence and business logic aren't bundled together in the same class. The `dry-rb` gems allow for splitting the validation logic away from the business logic's class (dry-validation) and also provides a sensible alternative to the community-wide pattern of service objects (dry-transaction).
This book covers how you would go about integrating these gems into a brand new Rails application, building features in an iterative fashion, resulting in a maintainable structure for the whole application.
Who is this book for?
This book is best suited for experienced Rails developers. I’ll assume a lot of knowledge around things like the normal structure of Rails applications, feature testing, what at least the concept of a “service object” is, and so on. If you’re new to Ruby, you will probably understand some of the terms I’m using here, but to get the most out of this guide you should have some Rails experience under your belt. Ideally, you should’ve encountered places where using vanilla Rails has hurt you, your friends and possibly even your family members. But that’s not necessary because there’s a few examples peppered throughout this guide that will give you a good inkling. Rails is good, but it is not without its flaws. This book is not supposed to be “The Bible of How to Integrate ROM into your Rails application”. It’s merely a short guide covering how one eager developer built the beginnings of a little Rails application using the rom-rb and dry-rb gems.
Скачать Exploding Rails
![](/templates/LitmyL/images/LitMyru.png)
[related-news] [/related-news]
Внимание
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.