I have recorded a short screencast in which I explain one flavour - TopicsExpress



          

I have recorded a short screencast in which I explain one flavour of a service object implementation within a Rails app context. I used the sequence diagram format showing all the objects involved: a controller, a form object, a service object, a repo, an ActiveRecord model and finally the business object. https://youtube/watch?v=rsQKe1Fi2Vo --- BTW, my book, called Fearless Refactoring: Rails Controllers has just been updated with some new chapters: - new chapter about testing, including the explanation, why service objects serve better for setting test state than the usual factory_girl or fixtures. - new chapter about early returns from a controller - an important part of every controller refactoring - its easy to make mistakes here. - new chapter on Command-query seperation at the controller level - new chapter on Rails controllers lifecycle and passing @ivars to the views, including Rails code snippets - new chapter on Routing Constraints - new chapter on using Service::Input class to provide clean list of what input attribtues the service is expecting for proper working If you already bought the book (thanks!), then you should have received an email with the download link. If youre still thinking about buying the book, now may be the good time, before the price goes up. rails-refactoring
Posted on: Mon, 18 Aug 2014 05:00:00 +0000

Recently Viewed Topics




© 2015