The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

tbcrowe (3) [Avatar] Offline
#1
I'm working my way through chapter two at this point, so I don't know how far this terminology extends. I think the use of the term "model" in the code is needlessly confusing. With MVC the "model" refers to the class that is tasked with marshaling data. An "instance" of a model is a particular set of data marshaled by the model. Although it does refer to instances in a few cases, the example code generally uses the term "model" to refer to individual instances. It would be far better to refer to the model instances by either the term "instance" or the term "record".
mitchellsimoens (12) [Avatar] Offline
#2
Re: Use of the term "model"
I know it has been months since you opened this thread. The term Model and record really go hand in hand. A Model is used to describe the class and a record is an instance of a Model.