4 ms·
Please note that the thin server should never be too thin. Logic should always happen in the server domain, handle the client as merely a presentation unit.
by pearjuice 13y ago
Please note that the thin server should never be too thin. Logic should always happen in the server domain, handle the client as merely a presentation unit.
- meowface 13y ago>Logic should always happen in the server domain, handle the client as merely a presentation unit. Angular/Ember users would disagree with you. There is a fair bit of logic that can be done on the clientside, sometimes even raw computational logic. It really just depends on the kind of application, and also what the developer thinks is best.
- yeukhon 13y agoNot all logic. You can do simple input verification on client side. You can do in pace filter and yielding from client side. Bu anything tht requires extracting db and saving o db must go bough server side to ensure security is met.
- sjwright 13y agoInput verification and pace filtering must be duplicated on the server side as well. You can do this on the client side as well, but only to aid good user interaction, not to actually verify input.
- yeukhon 13y agohence why i said anything that has to go through db and save to db has to go through server.
- joesb 13y agoWhich is the point of pearjuice's post about the logic not being too thin. Also duplicating same verification logic on both client and server does not make the server thinner, it only makes the client fatter.