Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Not 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.


Input 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.


hence why i said anything that has to go through db and save to db has to go through server.


Which 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.


>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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: