Live data from Hacker News

Django 2.2

djangoproject.com

251–257 of 257 posts

Re: Django 2.2

#251

Earlier quoted context omitted.

don't your users in 2020 care you are using an unsupported language? security wise

Of course not. That's the point.

the users care that your site is secure, especially if you're using their confidential info.

can you achieve security with a dead language? I don't think so.

Re: Django 2.2

#252

Earlier quoted context omitted.

Not a data engineer / scientist here. What am I missing with data-frames? I've written products that utilized them before (years ago), but it's been long enough that I don't know what I would even use them for in daily programming.

They're for tables and doing table-ie things: an imperative programming method for the same tasks people use Excel or SQL for. This dovetails nicely with most data science-ie tasks, like statistical analysis, engineering features, simple machine learning techniques (the tables can be easily transformed into numpy arrays), and plotting results. You can use them any time you feel the need to do table manipulations on n…

Got it, I was aware of this and many of the performance benefits another user mentioned, but wasn't sure how it could be useful in daily operation or quick Django shell_plus style scripting (one-off commands) when inspecting something like a User's table, as the original comment above indicated.

Re: Django 2.2

#253

Earlier quoted context omitted.

I assume Dan really means a nested directory structure, like so: django_project/top_level_app/second_level_app/ in top_level_app you then could do from second_level_app.models import model1 or from a different top level app: from other_top_level_app.second_level_app.mixins import a_mixin

Yep, exactly this. For example: project/orders/orders_shipping/orders_ups Unfortunately app names have a global namespace within Django's model registry, so we often have to prefix nested apps. The place where this really works nicely is user facing features and internal editing interfaces, or in features where we have N of a feature that are all similar. For the former, we might have an app such as "blog", and then…

Within a single app, could this not be done mith multiple model files, and multiple services files.

I usually organize my apps by having a services layer between models and views, such that the view functions have little to no knowledge about the underlying models.

This, in place of nested apps, I have "upsmodels.py" and "upsservice.py" and the view functions handles routing logic.

Re: Django 2.2

#254

Earlier quoted context omitted.

Of course not. That's the point.

the users care that your site is secure, especially if you're using their confidential info. can you achieve security with a dead language? I don't think so.

Users care very little about security, actually.

Re: Django 2.2

#255

Earlier quoted context omitted.

Yep, exactly this. For example: project/orders/orders_shipping/orders_ups Unfortunately app names have a global namespace within Django's model registry, so we often have to prefix nested apps. The place where this really works nicely is user facing features and internal editing interfaces, or in features where we have N of a feature that are all similar. For the former, we might have an app such as "blog", and then…

Within a single app, could this not be done mith multiple model files, and multiple services files. I usually organize my apps by having a services layer between models and views, such that the view functions have little to no knowledge about the underlying models. This, in place of nested apps, I have "upsmodels.py" and "upsservice.py" and the view functions handles routing logic.

That would indeed work, however given that one app can have ~20 nested apps at the first level, this might become tricky to manage. There's a lot to be said to having a directory with ~5 files in it that is all you need to keep in your head for a feature.

Re: Django 2.2

#256

Awesome ! we at Careers360 (India top 100 Alexa) use Django for everything, the best thing about an Opinionated stack like django is freshers are production ready at day 1, learning time reduces and maintainability is solid , although i prefer golang where frameworks are particularly not favored ,Django ORM surely lacks a lot of features but does a decent job, async story sucks unless you are willing to give in to Ch…

I believe I had interviewed once at careers360 a couple of years back, don't think it was mentioned to me then that you guys work majorly on Django otherwise I think I would have had a better chance at clearing it lol... But yeah Django is awesome, It has paid my bills for years. Hopefully async will come in relatively soon with Andrew Godwin's focus on it.

Re: Django 2.2

#257
post #212

Earlier quoted context omitted.

But then you’re in Microsoft echo system. No bueno.

Would you mind expanding on this?

People with that mentality aren't rational. If MS offers the best product, which they do for an awful lot of tech, especially once you start valuing integration & support, you should use it. It's actually pretty tough to beat, even if there's guys like that who don't believe in using "best of breed". Using "what you know" is usually best from a developer standpoint, but Microsoft has many best-of-breed products, much to his dismay.
Post reply on HN