What little experience do you have in front and back end developers?

I just thought of this, and I wanted to ask

I also have a few ideas of my own. I don"t know if they are correct. Please give me some advice

.

try to implement the logic in the background rather than in the foreground.

for example, just now I want to query everyone. If I have two interfaces before, query men and women, the data structure returned by the two interfaces is the same. For example, I do not raise the bar

.

you can adjust the men"s interface and the women"s interface again at the front desk, and then combine the two arrays

in the background, create a new API for querying everyone, and then call the male interface and the female interface in this interface, combine the data, and return it to the foreground

.

I think it"s better to do this kind of thing in the background, because the code specification of the foreground is not good, and most of the code is messy, and it will initiate two requests in the foreground, which is not good for performance. Merging it into one request in the background is more concise and elegant. I think


If the

interface is for front-end services, I think api depends on what the front-end needs.

There is no problem with writing both front and back ends of

ps:.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb6979-25e4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb6979-25e4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?