The Ruby on Rails and ClojureScript experts

May 8, 2013

Great article about usage of AR callbacks. Boils it down to this rule:

Use a callback only when the logic refers to state internal to the object.

Otherwise you will feel the pain of bad coupling when testing and continuing to work with your app.

Link: The Problem with Rails Callbacks – Samuel Mullen via samuelmullen.com