Skip to content

Comment on ActiveRecord (and Rails) Considered Harmfulparent

Comments

Use of instance variables to communicate state to views is known to lead to implicit and tight coupling between controller and templates (and become a nightmare to maintain over time)

DHH disagrees with this point of view because he considers templates to be methods of the Controller optimized for generating text. Hence use of instance variables is not a problem.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.