Answer the question
In order to leave comments, you need to log in
Whose objects to use: server or client?
I glue it into one project: a module with an application and a module with a server. I want them to use the same classes and not have to constantly copy classes from module to module with the slightest change.
And here's the question. Let's say I have a User class on the server and have the same class on the client. I made the client dependent on the server, that is, I removed the User class from the client and imported this class from the server module. And now it became interesting: what if, on the contrary, it is necessary to make the server dependent on the client? After all, we are implementing features on the client, and server progers must adapt to the front and all that. Although if both modules are written by one person, then it may not matter, but it's still interesting what people think.
ps: Help with tags
Answer the question
In order to leave comments, you need to log in
It is possible to get the third module for the general classes.
I made the client dependent on the server, that is, I removed the User class from the client and imported this class from the server module.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question