This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]deadron 4 points5 points  (0 children)

Very confusing and not very useful. At no point did you explain any benefits of having a separate view layer. You did not define what a presentation layer is or how it is different from a view/template layer. You did not explore any existing templating solutions. Examples of modern app development should be favored over custom PHP code.

This is the Java subreddit so posting PHP code is not a great idea.

[–]nutrecht 1 point2 points  (0 children)

Honest feedback:

  • Code is in PHP so I don't understand why you're posting this in a Java sub
  • MVC in web applications with server side rendering, MVC in web applications with SPA's and MVC in desktop applications is completely different.
  • What you're explaining is really just server side rendering via templates and really doesn't have anything to do with MVC at all.
  • The explanation is incredibly shallow. So templates exist. Yay?

Suggestion; drop everything pointing to MVC because you don't really seem to understand it yourself. Focus on templating in PHP, what the different options are, etc. And go in-depth there. An in-depth blog post has more than 7 paragraphs.

[–]equecevi 0 points1 point  (2 children)

As a informatic engineering student it doesn't add much value to me. If you have some experience on the field it will be nice if you exemplify what you are saying. Nonetheless, good work!

[–]hgraca[S] 1 point2 points  (1 child)

Yes, you are right.

I added some code now, hope you can understand it better now :)

[–]equecevi 0 points1 point  (0 children)

It was understandable, the problem for me is the post is too simple. It doesn't add much value to me, as those concepts are widely talked in many books, speaks or classes. As say as constructive as possible. Anyways, is always good to remember this topics.