V
V
Volodfarun2019-09-10 22:23:14
Frontend
Volodfarun, 2019-09-10 22:23:14

Why know OOP and templates in the frontend?

Good evening.
I understand everything, but for half a year of projects, I saw that the tasks to transport with api are just data, and what kind of behavior should I use?)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ronald McDonald, 2019-09-10
@Zoominger

No need, kill it.
The best template is copy-paste.

S
sim3x, 2019-09-11
@sim3x

Layout !== frontend
When you write frontend you will understand

R
Robur, 2019-09-11
@Robur

Then why and in any other areas of development. To write more complex code while keeping it fairly easy to maintain.
Specifically, for those tasks that you saw, this may not be necessary. Depends on what you are doing. You can live without OOP and patterns if you do fairly simple things.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question