Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The decomposition of ActiveRecord Object is not bad. I don't like class like UserAuthentication and AbandonedTrialQuery. I would rather have something like.

#app/models/user/query.rb

class User

  module Scopes

    #my scopes.

  end
end


Everyone has their own preference for implementing object oriented design which will help push things forward. The important part is that people are thinking about object oriented design more than ever before.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: