Узнал про
ActionController::Metal
Плюс наследования от него в том, что он не тянет за собой никаких зависимостей, а значит может сильно ускорить приложение. Однако использовать его следует с осторожностью. Подробнее: https://api.rubyonrails.org/classes/ActionController/Metal.htmlapi.rubyonrails.org
ActionController::Metal
Action Controller Metal ActionController::Metal is the simplest possible controller, providing a valid Rack interface without the additional niceties provided by ActionController::Base.
#рефакторинг
https://medium.com/@arturtrzop/what-ive-learned-by-doing-the-gilded-rose-kata-4-refactoring-tips-624f2a02498e
https://medium.com/@arturtrzop/what-ive-learned-by-doing-the-gilded-rose-kata-4-refactoring-tips-624f2a02498e
Medium
What I’ve learned by doing The Gilded Rose Kata (4 refactoring tips)
A while ago I found a great presentation on code refactoring called “All the little things” from Sandi Metz. The presentation was based on…
Forwarded from Половнёв—Журнал
Все, что нужно знать о миграциях без даунтайма и пятисотых в одной статье:
http://pedro.herokuapp.com/past/2011/7/13/rails_migrations_with_no_downtime/
http://pedro.herokuapp.com/past/2011/7/13/rails_migrations_with_no_downtime/
Статья про отличия в работе методов '==', '===' и 'eql?'.
Medium
Object equality in Ruby
In Ruby, as any classes inherit directly (or not) from the Object class, then the object equality logic is implemented between..