1
Speaking on the modern web, we have new concepts like SPA/Rest and I keep some doubts.
Is it correct to focus/study these concepts? Since they have emerged as an improvement on some old concepts.
Is it feasible always or when you can use SPA/Rest? I know that with a Rest in hand I can use it to serve several other applications, such as mobile apps, stability and etc.
For safety reasons, is it safe to use a SPA? In a talk about SPA, that the validation focuses on the front, however I would not stop to do the validation on the server, I think it has no sense to do this.
I speak in systems of all contexts, sizes, objectives and etc.
I know that many of these things are not so new, being present on the web for a long time, but many concepts are still proposed "old".
Client-side validation makes sense to decrease server load and to make the user experience more agile (client-side validation is always faster). Of course, it doesn’t replace server validation, but instantly validating improves the user experience without burdening the server.
– rodorgas
So in the case could continue using both sides, but with an advance of the client, although I find unsafe, because it is possible to manipulate javascript.
– G. M4rc14L
Not unsafe because the final validation is on the server.
– rodorgas
Sorry, I ended up expressing myself wrong, I meant that I would still find insecure if it was totally on the client and not on the server. If it’s both of us, I agree.
– G. M4rc14L