9 ms·
Yeah, I really feel like its the 'gold standard' in framework design. Still, I look at things in Django and get angry that they were not MORE opinionated, like
by dev360 11y ago
Yeah, I really feel like its the 'gold standard' in framework design.
Still, I look at things in Django and get angry that they were not MORE opinionated, like Rails. Like, not having a decent REST abstraction out of the box is almost unforgivable in this day and age.
- keithwhor 11y agoI found this a difficult line to toe during development. Where do I encourage developers to do whatever they'd like, and where do I enforce some sort of standard? I tried to pick a middle ground. I avoid helper functions where I can. Want to do something before you save the model? Learn ES6 inheritance patterns and write a save() method around the Parent#save. Will still have to see where people run into the most trouble and go from there. But I would enjoy it if people could pick up Nodal and walk away confident they could build an ES6 app from scratch.
- lumpypua 11y agohttp://lmgtfy.com/?q=django+rest http://lmgtfy.com/?q=django+rest I think Django's evolutionary decision making has been nothing short of fucking awesome. They've consistently waited until a clear, mature 3rd party winner has emerged for problems before integrating them. When those solutions are integrated, they're battle tested and not going to bite you into the ass. Django's team is very aware of where their weaknesses are, and they're working on them: We've been awarded $150,000 to help fund the development of Channels, the initiative to rewrite the core of Django to support (among other things) WebSockets and background tasks, and to integrate key parts of the Django REST Framework request/response code into Django, such as content negotiation. Together, these projects will help considerably improve Django's role of backing rich web experiences as well as native applications. https://www.djangoproject.com/weblog/2015/dec/11/django-awarded-moss-grant/ https://www.djangoproject.com/weblog/2015/dec/11/django-awar... Rails opinionated approach lead to heavy churn in the 2 -> 3 -> 4 transitions. I don't want to deal with that.
- dev360 11y agoThats true, but look also at costs over time.. With the fragmented approach, 3rd party frameworks have been suffering big time. How do you normalize between apps that are using multiple different ways to do REST, and how do you handle versioning conflicts? I totally hear what you are saying though.
- agconti 11y ago> Like, not having a decent REST abstraction The community has stepped in here. Django Rest-framework provides one of the best approaches for creating restful apis that any web framework has to offer. For me, using Django is inseparable from using Django Rest-framework. Its what makes working with Django great. Nodal by comparison does a lot of great things like Django does, but without the robustness of a rest framework behind it, Nodal seems to have created another good framework but not something new and better.
- dev360 11y agoDjango Rest framework was not always great :) .. In fact, nowadays I prefer to use one called Django Restless. My argument is just that REST is not the type of problem that should warrant having three competing libraries (see comment above).. It has been pretty fundamental to the way you build modern apps ever since SPAs became a big thing. To think that Rails got many of these things right-ish in version 1.2 which was released in 2007 is pretty damn impressive and speaks volumes about the technical clairvoyance of the ruby/rails community.