It is somewhat explained as a convention or something built-in, but I can't find much about it elsewhere. Is it the author's own convention or am I missing something?
What I love about Django
21–30 of 120 posts
Re: What I love about Django
#22I totally understand why the OP would use only FBV, however when writing REST APIs you will want CBV to reuse base classes such as ListView.
Re: What I love about Django
#23Earlier quoted context omitted.
It's made by DHH.
And great bunch of other, awesome people. I can take an argument of not buying a Tesla in order to avoid supporting Elons financial empire, but not using Rails because DHH made it is really hard to comprehend.
Re: What I love about Django
#24Re: What I love about Django
#25Re: What I love about Django
#26I really like the ORM and the migrations, but some parts I really dislike. They're maybe not Django's fault, but how it's used most places: * Models being passed around everywhere, queries happening everywhere. I prefer having a dedicated service/selector layer to do those things. Then convert to pydantic objects or something that's passed around further. * Corollary, but adding stuff to querymanagers quickly goes ou…
Never in my life did I have a problem with lazy loading causing unbearable performance until I joined a Python Django team. I really tried to find sympathy for the "dynamically typed" folks (please spare me saying Python is technically statically typed), but coming from writing apps and backends in Java, Swift, C#, Objective-C and PHP, Python with Django was the worst experience bar none.
I worked on the project for 10 months, could at least refactor the project to something semi-sane where obvious mistakes (which would not be possible in other languages) could not happen. Then along comes a "good Python dev" and threw it all out of the window and start doing SQL queries all over the place (typically 3-6 lines long), remove the domain objects and cause the same problems I started with to begin with. But his approach was saying that the other developers were "not good enough".
Yeah, have fun with schema changes going forward. Good riddance.
Re: What I love about Django
#27Earlier quoted context omitted.
It's made by DHH.
The DHH hate is absolutely crazy on HN. I don't understand how people can be so out of touch.
I know that there are other people contributing to Rails, and that's their choice. Other people stopped contributing once DHH showed his true nature.
Re: What I love about Django
#28DjangoCon 2008 Keynote: Cal Henderson
Re: What I love about Django
#29This article is very useful.
I use DRF but not serializers and write validations by hand because it is too abstract for me.
My views just call services and return the result.
Re: What I love about Django
#30I really like django, but since being involved in it from early days, whenever someone now praises Django, I am reminded of this talk: https://www.youtube.com/watch?v=i6Fr65PFqfk DjangoCon 2008 Keynote: Cal Henderson