5 ms·
I totally agree. Full page rendered app are way easier to code. It's like an immutable function - request in, transform, html out. I think as soon as you want t
by jkcxn 7y ago
I totally agree. Full page rendered app are way easier to code. It's like an immutable function - request in, transform, html out. I think as soon as you want to add some niceties with React you end up setting up a load of front end stuff. You suddenly need APIs, create-react-app, webpack, babel, build scripts, redux, routing etc. And you also end up losing out on some of the Django side, forms+validation, templating, views, urls. And often you end up having business spilling over to your front end.
I'm working on a project that lets you build your Django app like you normally would with templates and views but you get a React app and all the benefits of a single page app. You don't need to write any APIs or use redux etc. It will have a bunch of components built in and if you don't need any more then you don't even need to build the javascript yourself, you just include the already built file. At the moment I have a sort of Django Admin equivalent example working and I'm looking for some feedback. If you or anyone else has any ideas about it I would love to hear, feel free to PM me (email in profile).
- deleted 7y ago[deleted]
- davish 7y agoLooks like your profile just has an hnchat verification code, but would love to check out the project and help out if I can. It sounds really interesting!
- jedieaston 7y agoIs it in a state that you could do a Show HN? I want to see this, could be very useful for me trying to avoid writing JS ;)
- cugs 7y agoInterested in giving this a try; If you need testers, I'd be happy to try it out.
- andybak 7y agoAre you aware of pjax, turbolinks and (stepping up a bit from this really minimal baseline) intercooler.js? Curious how you feel your project fits in at this end of the ecosystem.
- 1337shadow 7y agoThere's also stimilusjs that works pretty fine with all that.
- joss82 6y agoIntercooler is fantastic and integrates well with Django.
- midrus 6y agoAnd my favorite: unpoly https://unpoly.com/ https://unpoly.com/
- osel 7y agoWould be keen to discuss/trial as well.
- irrational 7y ago>Full page rendered app are way easier to code This is basically web 1.0. It's like we've come full-circle: web 1.0 > web 2.0 > web 1.0 I'm not saying this is bad at all. I'm just amused that we are back to building web pages the way we did 10-15 years ago.
- deleted 7y ago[deleted]
- tkainrad 7y agoThis sounds really interesting. For developers, this approach could be a compromise between no-code and, well, code.
- danzig13 6y agoYes. My first job was ASP.NET Web forms and their APPSTATE really messed this up. Imagine full page reloads WITH state in between reloads.