Answer the question
In order to leave comments, you need to log in
How to separate application logic?
Hello. Not so long ago I started learning web development. I learned how to make simple websites, like a guest book or a blog. The output was mostly done with html+css only. Generated the necessary pages on the server and gave them to the user.
The other day I got acquainted with js and I knew about its frameworks, as well as the miracle of ajax technology. Actually in what a question: how to divide application logic? Where is the line between back and front. Basically, it is clear that with the help of js you can’t approach the database, you need a server for this. But for example, the output itself can be generated on the server, or you can receive json with the necessary data from the server on the client and generate html based on the data. I understand that perhaps with a deeper understanding of the development, the question will disappear by itself, but still I would like to figure out where this golden mean is.
Thanks to all.
Answer the question
In order to leave comments, you need to log in
The MVC pattern is here to help.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question