Hacker News new | ask | show | jobs
by Lockyy 3318 days ago
Do you have any resources to expand on the issues with AR callbacks? I'm interested to read up on this.
2 comments

AR callbacks can also make it harder to write tests.
In short: you lose control of what is happening, especially when you expand/inherit other classes. These kind of problems arise after few months of development, when the codebase is grown enough and starts becoming even more difficult to change or extend.

Try to check Trailblazer for a different approach.