Comparing Cell::ViewModel and Cell:Concept

69 views
Skip to first unread message

Nicholas Henry

unread,
Aug 22, 2014, 1:31:38 PM8/22/14
to cells-an...@googlegroups.com
Hello Nick,

Could you please give me a quick comparison between a Cell::ViewModel and a Cell::Concept? I see that Cell::Concept is a child of Cell::ViewModel but wasn't sure how it differs. I see that the generators for Rails offer generates for `cell` (controller style cells) and `concept` but not view_models which is described in the README.

Thanks!
Nicholas

Nick Sutterer

unread,
Aug 22, 2014, 8:14:10 PM8/22/14
to cells-an...@googlegroups.com
Yeah, I need to fix it! Oh, and, Hi Nicholas! :)

A concept cell is a view model but follows Traillblazer's file layout: https://github.com/apotonick/trailblazer#a-concept-driven-oop-framework

Also, a concept cell will have reduced functionality as I'm gonna ditch a lot of Rails bs like allowing 15 different ways of computing the layout name - if you commit to a concept cell, you commit to the Trb architectural style. That's a good thing.

Nick


--
Sie erhalten diese Nachricht, weil Sie in Google Groups E-Mails von der Gruppe "Cells and Apotomo" abonniert haben.
Wenn Sie sich von dieser Gruppe abmelden und keine E-Mails mehr von dieser Gruppe erhalten möchten, senden Sie eine E-Mail an cells-and-apot...@googlegroups.com.
Weitere Optionen finden Sie unter https://groups.google.com/d/optout.

Nicholas Henry

unread,
Aug 27, 2014, 3:03:28 PM8/27/14
to cells-an...@googlegroups.com
Thanks, Nick :)

So will the existing view models documented in the README exist in the future? Or will they by superseded by Concepts?

Cheers,
Nicholas

Nick Sutterer

unread,
Aug 27, 2014, 6:23:05 PM8/27/14
to cells-an...@googlegroups.com
Yepp, I want to re-structure the entire Cells README. Think of a view model as an implementation, whereas Concept is structural, it has a different naming schema and file layout, the implementation (view model) is still the same.

Thx
Reply all
Reply to author
Forward
0 new messages