Hacker News new | past | comments | ask | show | jobs | submit login

> The fundamental problem is not that the SPA pattern is bad

While it's not bad, SPA forced you to do view validation twice, one on backend and another on frontend. (Generally)

Let's say that in HN not everyone can view upvote score of comment. With classic server rendering, you can put the check on view directly (though not recommended, it's sometimes useful to cut corners) and it's guaranteed that those users won't see the score.

OTOH you can't do that with SPA, since you can easily sniff the content via API response.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: