Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I have currently reading Grails and I love it. In order to get hands on experien

ID: 650004 • Letter: I

Question

I have currently reading Grails and I love it. In order to get hands on experience with Grails I decided to create a web application for some Management System. Ya as you can guess there are plenty of entities that goes into the domain model for my web application. Any how as a novice in Web development, I just thought of creating a homepage first of all.

Now here comes the problem, I sat for an hour and drawn my domain model(for my homepage alone!). After that I had a doubt that whether we have to enter all the entities(i.e my whole web app entities like user, profile, tasks and their relationships etc) in Domain model first and then start coding or draw domain models for each page in our web app and at last connect all the domain models?

Well, what I do is wrong? This is my first project that ever started in my life. Thanks for your advices.

Explanation / Answer

A domain model appears in several phases, analysis, design and implementation. From your question, I think that you're talking about including all of your classes (domain model in implementation phase) into your home page.

For example, I think that you want to instantiate all classes, and then use them. Well, then answer is, it depends on your requirements. Consider YouTube for example. In its home page, it needs to deal with tens of entities. Movies, Comments, Users, Subscriptions, Ads, etc. Of course they need to include and instantiate all of these classes while they're building their home page.

However, if your home page is only a welcome page with some news in it, and for it you don't need to do anything with user, authentication, advertisement, etc. then you shouldn't include your whole domain, while you're developing your home page.