Live data from Hacker News

Django 4.0

djangoproject.com

31–40 of 226 posts

Re: Django 4.0

#31
post #21

Earlier quoted context omitted.

"alembic" is better by leaps and bounds. it is used within a SQLAlchemy system, which is also a superior ORM than Django's.

question of taste...

Less taste and more that data mapper ORMs are better (although harder to make) than active record ones, except for very small datasets/simple queries.

Re: Django 4.0

#32
post #3

I must learn Django, it's got everything I'll ever need. No, Rails will make me happy and it's better for lonely devs like me. No I must learn a Modern Web Framework (TM) to prove I'm not stuck in the past. No way, I'm not a fashionista. Have you seen that Phoenix demo where the guy builds Twitter in like 4 minutes? That's the future. Hold on a minute, enough of this magic. I need to learn to build everything in Comm…

It's actually a bit worse (or better) depending on how you see it. You get to invest (time, energy) in what will land you a job. 99% it's not what you want/like and not what is technically best. IT's just what came to dominate your job market.

At least if you're in a EU backwater country or in EU public sector-related projects. (Which usually means java/c# and to a much lesser extend a python tech stack).

PS: Loved the rant but you forgot to mention Golang :). "You're doing web backend and not using Go?!!"

Re: Django 4.0

#33
post #26

Earlier quoted context omitted.

Not to single you out, but are you or your business supporting the project (financially) in any way?

I sometimes get these almost angry emails about Gensim, my open source library. How come I'm not responding faster, merging PRs, fixing issues? For this critical popular project??! Meanwhile, sponsorships are at 13% of the (not terribly ambitious) goal of $6k/month [0]. Yeah, that's why. [0] https://github.com/sponsors/piskvorky

Thanks for creating Gensim!

Re: Django 4.0

#34

Earlier quoted context omitted.

I genuienly have not heard about either one of the three. I guess I remain stuck in PHP, Phalcon Framework, Symfony and Django / Flask.

I was checking out Express...how do I get user logins, oh just npm in 50 other projects, adding 50000 dependencies. Back to Django then!

The difference between Django and Express.js is that one is a fully-fledged web application framework, while the other is a micro framework that just gives you a simple request -> response abstraction over `http.createServer`.

I find Flask is more comparable to Express.js in that regard. Need auth? You need to:

1. Install a lib for persistence

2. Set up cookie sessions, or install another lib for JWT

3. Set up auth middleware

4. Prepare login/register/forgot pass views and flows

which are almost the same steps you need to take in Express.js.

Re: Django 4.0

#36
post #3

I must learn Django, it's got everything I'll ever need. No, Rails will make me happy and it's better for lonely devs like me. No I must learn a Modern Web Framework (TM) to prove I'm not stuck in the past. No way, I'm not a fashionista. Have you seen that Phoenix demo where the guy builds Twitter in like 4 minutes? That's the future. Hold on a minute, enough of this magic. I need to learn to build everything in Comm…

[deleted]

Re: Django 4.0

#37

We went all in on FastAPI with my team, but we're hit the issue that the projects of Tiangolo (FastAPI, SQLModel, Typer) seem to be turning pretty much unmaintained : https://github.com/tiangolo/fastapi/discussions/3970 We've already been hit by multiple bugs with fixing PR opened, but left to rot, and missing documentation : the 'tutorial' documentation is great, but if you want a reference you have to go read the c…

I share your thoughts on Typer[0]. It's a super cool project, but lacking proper hooking points to interact with the `click`[1] lib underneath [2], I am not sure if it would be the best decision to use Typer when we're rewriting our CLI.

[0]: https://github.com/tiangolo/typer/

[1]: https://click.palletsprojects.com/

[2]: https://github.com/tiangolo/typer/issues/77

Re: Django 4.0

#38
post #26

Earlier quoted context omitted.

Not to single you out, but are you or your business supporting the project (financially) in any way?

I sometimes get these almost angry emails about Gensim, my open source library. How come I'm not responding faster, merging PRs, fixing issues? For this critical popular project??! Meanwhile, sponsorships are at 13% of the (not terribly ambitious) goal of $6k/month [0]. Yeah, that's why. [0] https://github.com/sponsors/piskvorky

> How come I'm not responding faster, merging PRs, fixing issues? For this critical popular project??!

> Meanwhile, sponsorships are at 13% of the (not terribly ambitious) goal of $6k/month

The answer would then be: "because I have to keep another job to pay the bills" then? Hope you can get to your goal ASAP. Going by stupidly quick math, you have 12k stars for gesim alone, and that boils down that if every star on github payed 50 cents you'd already be there. I know that starring doesn't mean anything other than "hey, this looks interesting!", but then again 50 cents is probably cheap enough for a majority of those "stars" that they wouldn't even notice.

Also: thanks for creating and maintaining gensim!

Re: Django 4.0

#39
post #3

I must learn Django, it's got everything I'll ever need. No, Rails will make me happy and it's better for lonely devs like me. No I must learn a Modern Web Framework (TM) to prove I'm not stuck in the past. No way, I'm not a fashionista. Have you seen that Phoenix demo where the guy builds Twitter in like 4 minutes? That's the future. Hold on a minute, enough of this magic. I need to learn to build everything in Comm…

There are just so many makes and models of automobile and people get by. I remain so confused why choice paralysis is a thing in software. Maybe the libraries need to cost 30,000$ ;-)

Sometimes they cost you much more, if you chose the wrong one

Re: Django 4.0

#40
post #15

Earlier quoted context omitted.

Nah, Django makes you sad: async support is not full, migrations engine is pretty poor, not all database features are present, any kind of typing is hacky, very slow and so on

> migrations engine is pretty poor I find this to be an odd take. The Django migrations engine is probably its strongest feature.

Any change you make has to be atomic, or it is unable to detect the change, and you have to rely on manual migrations.
Post reply on HN