by Jgoure on 7/21/18, 10:14 PM with 1 comments
I am going with a MVC design pattern. For this project I've set down for the first time and written out all of the features of the website. Then I began to document each models structure. I've written out all of the properties for the models. Next I will start designing the views.
The question I have is what kind of model structure would you use? I have 3 models the user, the submissions and the comments.
Each model seems so huge though.
I've studied iOS design and I feel that it would be easier and it makes more since to design and build things the way iOS apps work. For example, in an iOS app, if a user clicks on a submission in iOS, the submission detail view would be populated from the model data of the clicked submission.
However from my understanding of websites, building each site from the model data each time a link is clicked would be a huge waste of server resources. Also when web crawlers build links each site needs to be server side rendered. So the server must store 100s and 1000s of sites.
Can you please recommend any further reading on the subject of web app structure and project planning?
by mtmail on 7/21/18, 10:37 PM
The source code of https://lobste.rs/ is also open source and from a feature point-of-view pretty similar. https://github.com/lobsters/lobsters
> building each site from the model data each time a link is clicked would be a huge waste of server resources
It's typically still done. Forums are 90+% read, little write and caching the rendering output gives a huge boost.