HN user

bkovacev

600 karma

borkopolo [at] gmail.com

Posts12
Comments271
View on HN

I have used it for personal coding projects - expo react native projects and a Django backend. my account got banned, as the company owner non the less. My teammates were using it for the company projects (all coding through the codex app / vs code) and they were not banned.

Fruska gora, a mountain region in Serbia, has acquired or were gifted 5 European bisons from Poland[0]. It's always heartwarming to see a country working extremely hard to preserve any species. It was devastating news for a lot of people that one of the bisons, Djuka, passed away recently (not to be confused with a Serbian politician Vladimir Djukanovic also known as bison Djuka[1]).

[0] https://www.gov.pl/web/srbija/poljski-bizoni-u-nacionalnom-p...

[1] https://en.wikipedia.org/wiki/Vladimir_Đukanović

That would have been my argument exactly - I am not saying that Django fits every use case, but with my limited exposure to projects that have ended up using non-Django Python API framework, they ended up recreating the batteries included approach, with probably way too many issues waiting to be discovered with manually rolled out auth, middlewares and ORM.

Old is a harsh word, maybe mature would be a better fit, not everything new and shiny is gold, and yet not everything old sucks.

Not arguing here about types and Pydantic being faster than the built in ModelSerializers. However, for serializer speed improvements and performance in DRF I would advise dropping ModelSerializers and either going for Serializers or plain dict. Haki Benita has a beautiful article on that [0]. I was able to accomplish sub 200 response times on a fairly large response from tables that had tens of millions of records.

I think you have no objective reason other than your styling and rather personal preference for function based views?

[0] https://hakibenita.com/django-rest-framework-slow

I'm genuinely surprised it got my accent right. Coming from Serbia, I'd never expect to get it right. My first guess was that it's geo-ip based, but I could be wrong.

While we are it - are there any good resources on how to best self host a Postgres database? Any tips and tricks, best practices, docker / no docker etc? I’m looking to self host a database server for my multiple pet projects, but I would love to get backups, optimizations and other stuff done well.

I have had similar thing happen with Wise, a year or two ago. I’ve looked into alternatives like Mercury and Brex. If you opened up your business through Stripe Atlas or Doola and the likes could you ask them for support?

If you don’t mind me asking - what country do you reside in?

How would this (or any of the recent changes) affect popular web frameworks like Django / Flask / FastAPI? Would this increase performance in serialization or speed in general?

Just a few observations:

- Async... The Django way of doing things... Celery -> it's a background task system which is like bringing a bazooka to kill a fly for what you wanted to do (I assume proxying the request to an external API).

- database I/O and calling external services -> Use gunicorn gevent worker type that brings up the pseudo threads.

- JWT was poorly supported -> There's at least 5 battle tested libraries that you can use to implement JWT alone (simplejwt comes to mind first)

- the most popular auth library needed quite a bit of manual patching in code to make it all work -> Which one? There's few that are standard and most are easy to customize via global settings.

- Raw deployment on PaaS like Heroku and Elastic Beanstalk -> that's more on the platform rather than Django itself

- DRF -> I agree, DRF has it's own way of doing things and deviating from them can give you massive headaches.

Heroku 22 Stack 4 years ago

You're right, my bad! Regarding continuous protection that works flawlessly as it has saved us 2-3 times already!