2 ms·
Fun article. Just a note, MVC requires the Observer Pattern. If the Observer Pattern isn't present, it's not MVC. And it's fine if it's not MVC. It can be call
by joeyguerra 3y ago
Fun article.
Just a note, MVC requires the Observer Pattern. If the Observer Pattern isn't present, it's not MVC. And it's fine if it's not MVC. It can be called something else. It's fine.
RoR doesn't implement the Observer Pattern; thus, not MVC. It can just be RoR.
AspNet MVC doesn't implement the Observer Partner; not MVC. It can just be AspNet.
Here's another reference to Tyrgver's explanation of the MVC language. Although, it's lack of code (and details) is probably one reason why people misunderstand MVC ;)
https://folk.universitetetioslo.no/trygver/themes/mvc/mvc-index.html https://folk.universitetetioslo.no/trygver/themes/mvc/mvc-in...
Woohooo! Fun times.
- regularfry 3y agohttps://github.com/hotwired/turbo-rails/blob/main/app/models/concerns/turbo/broadcastable.rb https://github.com/hotwired/turbo-rails/blob/main/app/models... is designed to close that loop with automated view updates from ActiveRecord changes.