|
|
|
|
|
by davidkell
1825 days ago
|
|
As the sibling comment says, while I disagree with specifics this article is full of gems. @Alex3917 What do you think of using Django-rendered templates for views that don't require significant frontend interactivity? You seem to advocate the "everything is an SPA + Rest API" approach, which I thought was interesting. |
|
I don't know that there's one best choice for how to render the front end. I generally like Angular because it's strongly opinionated, and in general, strong opinions in software leads to faster velocity and lower TCO. But I don't think that Angular is the universal best choice. I do however think having the front end powered by a REST API is 100% the right move, because it draws a line in the sand where if private data or incorrect data are getting returned then there is clearly an issue. Having a specific place (the JSON response) where you can write tests against is a huge win, one big enough that imho it outweighs every possible disadvantage of REST.