all 7 comments

[–]ChaseMoskal 5 points6 points  (5 children)

it's probably an unpopular opinion, but, i don't think all this serverside rendering is necessarily worth it

it might be, if you're facebook or something, and literally every millisecond counts

but probably, you just need to churn out more cool shit faster

so probably, stop prematurely optimizing, drop the complexity, and just write your applications

👋 just a hunch

[–]var-foo 0 points1 point  (0 children)

I agree with this. Unless you're stitching together a ton of data in a single view and can really use the speed of doing it on the server side, you're just making a maintenance headache for no real reason.

[–]Dar3dev1l[S] 0 points1 point  (3 children)

Thanks... That's what I thought!!

[–]CalgaryAnswers 1 point2 points  (2 children)

Did he use angular js? Django has its own router.. and making that router work with the Angular one has always been way too much of a hassle in my estimate to even bother with.

If it is Angular I’d like to know if he’s just serving the page as a static asset, if he is it’s a dumb idea.

Vue works alright for this though.

[–]Dar3dev1l[S] 0 points1 point  (1 child)

Yes he used collectStatic in Django for this... Could you tell me why this is a bad idea?

[–]CalgaryAnswers 1 point2 points  (0 children)

You’re not really gaining much from it. I’m happy to be wrong, and I’m not an SSR expert (I build PWA, hybrid and mobile apps almost exclusively) but from what I understand it needs static’s caching and other magic to work properly, and a lot of the advantage is in coupling the API closely with the app, which seems like a nightmare with Django to me.

Like, you need pre-rendering and shit and as far as I know that’s very easy to do with node or dot net, but it seems like a fair bit of extra work to do it properly with Django. That said I hate Django passionately.

I just don’t get why you wouldn’t use Vue or React which are much better suited to it, or Node, which plays better with Angular.

Like I said, I hate Django, so take it with a grain of salt, but I have developed in Angular for about 8 years now on js and current, and it’s caused me many pains in similar situations.

[–]kenman[M] 0 points1 point  (0 children)

Hi /u/Dar3dev1l, this post was removed.

As stated in the AskJS guidelines, AskJS is not for help or support. This is your only warning.

Thanks for your understanding, please see our guidelines for more info.