Live data from Hacker News

Django 2.2

djangoproject.com

51–60 of 257 posts

Re: Django 2.2

#51
post #8
post #2

Nice. Anyone building fun stuff using Django these days?

Django is still by far the best web framework as far as I can tell. Every couple years I check what's out there for GoLang, Rust, Nodejs, and Swift, and it seems like it will be a decade or more before anything else comes even close. Even though a lot of people don't like Django's ORM, at least it does almost everything you would want to do with Postgres. (And if you want more you can always use SqlAlchemy.) Most of…

IMO PHP's Laravel is competitive with Django.

I think Django, Laravel, and Rails are really the only 3 frameworks with the levels of ecosystem and built in functionality that these 3 have (unless there's something in Java-land that I'm not aware of). ASP.NET Core is close, but the ecosystem around it is weaker.

Re: Django 2.2

#52
post #22

Django/Jupyter/pandas is an ecosystem that's hard to beat. If you're not already using it, check out `django-extensions`. You can use `./manage.py shell_plus --notebook` to launch a Django-friendly Jupyter notebook. From there you can prototype with extreme ease and confidence. I have also built a trivial custom model Manager so I can do stuff like: User.objects.all().to_dataframe("first_name", "last_name", "email")…

Wow that looks powerful. I have a YOLO / openCV project I need a web app built for so users can log in and download preconfigurations... was thinking elixir/phoenix framework but i'm second guessing the productivity hit i'd take due to lack of SO questions, and mature libraries.

Re: Django 2.2

#53
post #14

Earlier quoted context omitted.

I think you are missing the elephant in the room: Ruby on Rails.

With Python you get: - The best-governed language in all of software, and the best-governed web framework - A huge ecosystem of libraries for everything from data science to email processing, that are (mostly) easy to read and modify and free from systemic security issues. And pretty much every major company with an API has an official Python library for that API. - The standard language taught at most of the top CS…

> What exactly would you get in terms of benefits from switching to Ruby?

You'd get Ruby on Rails.

Re: Django 2.2

#54
post #14

Earlier quoted context omitted.

I think you are missing the elephant in the room: Ruby on Rails.

With Python you get: - The best-governed language in all of software, and the best-governed web framework - A huge ecosystem of libraries for everything from data science to email processing, that are (mostly) easy to read and modify and free from systemic security issues. And pretty much every major company with an API has an official Python library for that API. - The standard language taught at most of the top CS…

[deleted]

Re: Django 2.2

#55
post #38

Earlier quoted context omitted.

Thanks for proving my point, your mentality is the perfect example of why I think it's great to stay as far away as possible from PC-people :)

You're that much of a snowflake? /s Seriously, life is far too short to waste any time on such drama. Just let it be water under the bridge. You don't care about the master/slave thing, fine. Not using a framework that may or may not allow you to get a thing done cheaper and with less effort, a competitive advantage, just because you disagree on something like this? Okay, I guess you're the one hurting yourself.

Imagine migrating your own code to a new framework just to own the libs.

Re: Django 2.2

#56
post #49

I've been away from Django for a few years, and hope to come back one day. One thing I'm curious about, coming from well-typed JS codebases using Flow, is the quality of typings in major projects like Django, Pandas, etc. Are their APIs well-typed? Can I get quality types for my models?

The PyCharm IDE has extra support for Django to enable some additional type inference, and it works like an absolute (pun intended) charm.

Beyond that, the Django core isn't type-annotated yet likely because of Python version support, but I'm sure you can get typeshed pyis or something.

Re: Django 2.2

#57
post #2

Nice. Anyone building fun stuff using Django these days?

I've built a bunch of stuff using Django, but my most recent project allows people who play the game ClashRoyale to see if they have played against a streamer on Twitch. If they have, they can view the video directly at the moment their game is shown.

http://playedwith.io

(click "latest games" to see how it works)

Im a big fan of django, and have used it for several projects. Using rest-framework allows you also to make powerful apis, and SPA front ends like Vue or React. It's ORM is also a very user friendly (though aggregations are definitely a pain).

I consistently come back due to the great docs, and the ease of use. Being python based means you can integrate a lot of libraries, especially if you are doing any kind of data science related stuff. Websockets and real time stuff can be cumbersome from my experience, and for that I would stick to node. It's possible to use django-channels but I had a very mixed experience trying this.

Re: Django 2.2

#58
post #38

Earlier quoted context omitted.

Thanks for proving my point, your mentality is the perfect example of why I think it's great to stay as far away as possible from PC-people :)

You're that much of a snowflake? /s Seriously, life is far too short to waste any time on such drama. Just let it be water under the bridge. You don't care about the master/slave thing, fine. Not using a framework that may or may not allow you to get a thing done cheaper and with less effort, a competitive advantage, just because you disagree on something like this? Okay, I guess you're the one hurting yourself.

Yes, obviously I am. ;)

Django is not really the only framework around for rapid web development so I haven't really found any pain so far.

I'm not wasting the time on drama, which is exactly why I stopped using Django. I just made a comment here on why I stopped using it.

The python community has a history of PC-people ruining it for people:

https://adainitiative.org/2014/09/22/why-guido-van-rossum-su...

https://www.cnet.com/news/two-people-fired-over-pycon-dongle...

And nowadays jokes aren't allowed on PyCon (https://us.pycon.org/2019/about/code-of-conduct/) from what I assume is after that indicdent lol.

But yes, I am the sensitive one that is causing drama ;)

Re: Django 2.2

#60

Earlier quoted context omitted.

The people behind Django are one of the sharpest set of developers out there. Just hang out the django-developers mailing list for a bit and you'll likely conclude the same. Don't let this one PR color your entire judgement of an otherwise incredibly successful and polished piece of software. https://groups.google.com/forum/#!forum/django-developers

> The people behind Django are one of the sharpest set of developers out there. That may be, but it doesn't really matter to me if they put their political views into their code. It can literally be the best framework out there, built by the sharpest minds in the world and I would still use another framework even if it would hurt me economically.

I feel the exact same way about Rust for what it's worth. Turned me off the language completely.
Post reply on HN