davidmann4 / botstack

rapid chatbot development with ruby on rails
127 stars 23 forks source link

Instance methods instead of class methods on BaseBotLogic subclasses #26

Closed mraaroncruz closed 7 years ago

mraaroncruz commented 7 years ago

Class methods are great for factories but besides that they can be harmful. Especially when all of the domain logic lives in the class. http://blog.codeclimate.com/blog/2012/11/14/why-ruby-class-methods-resist-refactoring/