← Home ← Back to /g/

Thread 105576720

68 posts 12 images /g/
Anonymous No.105576720 [Report] >>105576740 >>105580469 >>105580797 >>105586382
2025... i am forgotten
Anonymous No.105576732 [Report] >>105576740 >>105576743 >>105576761 >>105580471 >>105582699
What do you use for python these days? Instead of flask.
Anonymous No.105576740 [Report] >>105576771 >>105580637 >>105586878
>>105576720 (OP)
>>105576732
Use Go+HTMX
Anonymous No.105576743 [Report] >>105580795
>>105576732
fastapi

it's literally the same than flask but async.
Anonymous No.105576761 [Report] >>105576765 >>105580482
>>105576732
Why would you use Python for backend?
Anonymous No.105576765 [Report] >>105576770 >>105576804 >>105579808 >>105580457 >>105580816 >>105580861 >>105581079 >>105581962 >>105582100 >>105582132
>>105576761
What should I use then?
Anonymous No.105576770 [Report] >>105576951 >>105580664
>>105576765
php
Anonymous No.105576771 [Report] >>105580637
>>105576740
>HTMX
Idiot.
Anonymous No.105576804 [Report] >>105580471
>>105576765
Anything but Python, even Django (the more popular Python web framework) is a fucking mess.
Anonymous No.105576951 [Report]
>>105576770
Anonymous No.105576987 [Report] >>105577511 >>105578608 >>105586948
NOPE

I recently made a shitty web app in Flask. Sold it for $10k.

Flask is absolutely goated. Fuck batteries included.
Anonymous No.105577511 [Report]
>>105576987
>I sold a shitty web app
>Furthermore, Flask is le good
I hate people like you.
Anonymous No.105578608 [Report]
>>105576987
based
the guy above me is seething
Anonymous No.105579803 [Report]
>2025
>have question about something in flask
>dude who wrote it pops up and gives you an exhaustive answer
yeah I'm sticking to flask for my simple web apps
Anonymous No.105579808 [Report]
>>105576765
Go
Anonymous No.105580457 [Report] >>105580752
>>105576765
Astro is the best SSR SSG I ever used easily.
Anonymous No.105580469 [Report]
>>105576720 (OP)
We are literally working on Flask webapp lol in our company.
Anonymous No.105580471 [Report] >>105580770
>>105576804
>Its the most popular so it must be good
Its a mess because of it

>>105576732
Fastapi is based
Anonymous No.105580482 [Report]
>>105576761
If you are doing machine learning/"ai" python still has the best tools
Anonymous No.105580500 [Report]
It is the best technology I know for building lightweight web apps in Python. Really, once you have learned a few different web dev stacks it is pretty trivial to learn new ones. I moved on to machine learning to satisfy my hunger for a challenge and to prove my abilities as a programmer.
Anonymous No.105580637 [Report]
>>105576740
>>105576771
>HTMX
2023 called, it wants its flavor of the month meme tech back
Anonymous No.105580664 [Report]
>>105576770
Baste
Anonymous No.105580752 [Report]
>>105580457
I don’t get it. It looks like the usual static site generators.
Anonymous No.105580770 [Report] >>105580835
>>105580471
Django is my favorite, and is the most popular. It's also easy to learn, scalable, safe and fast.
Go is cool also with Gin.
Anonymous No.105580795 [Report]
>>105576743
fuck off, tiangolo
Anonymous No.105580797 [Report] >>105580853
>>105576720 (OP)
Why would you use a python framework when node exists?
Anonymous No.105580816 [Report]
>>105576765
Probably Go, but anything that has green threads + a runtime as it will make your life a lot easier.
Anonymous No.105580835 [Report]
>>105580770
That's why its the most popular, its very opinionated and thats why its easy, you really dont have to think much

Flask is the opposite, you have more freedom in doing things your way, which makes things a tad more complicated for people that dont care
Anonymous No.105580853 [Report] >>105580857 >>105580940
>>105580797
javascript belongs in the browser
Anonymous No.105580857 [Report] >>105580911 >>105580943
>>105580853
python is just as bad for backend as javascript
Anonymous No.105580861 [Report]
>>105576765
Perl
PHP
C
Anonymous No.105580882 [Report]
Flask is a fucking pain in the dick compared to FastAPI. Flask used to be good when the only thing around was Djangoshit but that's not the case anymore.
Anonymous No.105580911 [Report] >>105580946 >>105580952
>>105580857
What’s good then?
Anonymous No.105580940 [Report]
>>105580853
developing in node is a more pleasant experience than python and far more performant
Anonymous No.105580943 [Report]
>>105580857
at least it has strong typing
Anonymous No.105580946 [Report] >>105580952 >>105581641
>>105580911
Go, Node, Java.
Anonymous No.105580952 [Report]
>>105580911
>>105580946
Also Rust, Erlang/Elixir.

These are the beat. Then comes python
Anonymous No.105581079 [Report] >>105581090
>>105576765
Go
Anonymous No.105581090 [Report] >>105586878
>>105581079
I didn't think Chuds like go
Anonymous No.105581641 [Report] >>105581644 >>105581925
>>105580946
>Just as bad for backend as JavaScript
>Node
Huh?
Anonymous No.105581644 [Report]
>>105581641
Most of us are AI.
Anonymous No.105581645 [Report]
Litestar is FastAPI without a bus factor = 1
Anonymous No.105581925 [Report]
>>105581641
It was Gemini recommendation, the AI said Node is better than Python if your bottlenect is I/O (meaning Node is better with IO operations).
You can ask Gemini or ChatGPT for more details.
Anonymous No.105581944 [Report] >>105582051 >>105582105 >>105582255 >>105582564
>Python
Anonymous No.105581962 [Report]
>>105576765
JavaEE, JSF
Anonymous No.105582051 [Report] >>105582081
>>105581944
these versions are ancient.
But thanks anyway, nice to see
Anonymous No.105582081 [Report] >>105582122 >>105582127 >>105582224
>>105582051

These ratios haven't changed. Python is impossible to optimize because it was never originally written to be a performant backend language. People tried to turn a hammer into a screwdriver.
Anonymous No.105582100 [Report]
>>105576765
For your on project? Elixir/Phoenix, genuinely.
Anonymous No.105582105 [Report]
>>105581944
why there are no benchmarks for implementation time? as in what companies are really paying for?
Anonymous No.105582122 [Report] >>105582133
>>105582081
>it was never originally written to be a performant backend language
So just use Go by that logic?
Anonymous No.105582127 [Report] >>105582143
>>105582081
>Python is impossible to optimize because it was never originally written to be a performant backend language
that's nonsense. Python isn't as fast as other languages because no one is interested in making the python fast. They just use fast libraries with python bindings instead.
Anonymous No.105582132 [Report]
>>105576765
Java. I'm not Indian, it's a solid language.
Anonymous No.105582133 [Report]
>>105582122

Go, C#, or Java. I'm curious about Swift but don't know much about it.
Anonymous No.105582143 [Report] >>105582184 >>105584828
>>105582127
>Python isn't as fast as other languages because no one is interested in making the python fast

If it's tough to do, and the appropriate amount of effort isn't there, it's functionally impossible. Python gets plenty of attention and support, this is just an impossible ask. Would you try to turn R or Matlab into a server side application language?
Anonymous No.105582184 [Report]
>>105582143
It's not tough to do it's a well understood problem. There's just not a lot of interest in doing it for python when it's already been done for languages that are already popular in the space.
Anonymous No.105582224 [Report] >>105582231 >>105582252
>>105582081
>Python is impossible to optimize
You posted a screenshot with PyPy on the same level as the other shit. It also contains Cython.
You know that PyPy is Python implemented in Python? So that's how far you can optimize it.
Anonymous No.105582231 [Report]
>>105582224
Pypy is such a cute name for a pet!
Anonymous No.105582252 [Report] >>105582390
>>105582224
Pypy isn't cpython, which is what people mean when they say python. The reason python can't be optimized is because of all the things it can't do that pypy can, like break compatibility with c extensions.
Anonymous No.105582255 [Report]
>>105581944
So use PyPy if performance matters.
Anonymous No.105582390 [Report]
>>105582252
All I am saying is you can optimize Python.
That screenshot also had comparisons with other python implementations Jython(Java) and Ironpython(.NET) that have no compatibility with the C-API at all.
PyPy has full compatibility with the Python C-API.
Out of the PyPy project grew CFFI as well as an easier and faster interface to integrate C code. PyPy has been optimizing Python for a very long time now, and it usually can be used as a drop-in replacement. Most applications are I/O bound anyway. Does not matter what code has to wait for your database infinitely longer than the run time of that code. Most people optimize their code without even having a benchmark.
The process of optimizing Python is the same as in any other language and there are countless tools to do that. PyPy is just one of them.
Anonymous No.105582564 [Report]
>>105581944
>there are people who still use ruby for backend
grim
Anonymous No.105582699 [Report]
>>105576732
Depends on the product. Where is the main complexity? If any at all. Is it mostly handling user forms? Flask + htmx is gonna handle that. Complicated front end, tried out Elm recently it's insanely powerful for that,backend of choice. Complicated both? I don't really know yet, all I know is I don't want JS on the backend too so all node shit is out. I'd think of go or erlang + web components is probably the goat.
Anonymous No.105584828 [Report]
>>105582143
i will be waiting for your PRs
Anonymous No.105586382 [Report] >>105586498 >>105586878
>>105576720 (OP)
I’m using flask at my company. Backend + client app in one comfy deployment.

> but Python le bad
Just don’t let brown hands touch it and it’s fine.
Anonymous No.105586498 [Report] >>105586662 >>105586878
>>105586382
>I’m using flask at my company.
Nice objectivity, chud.
Anonymous No.105586662 [Report]
>>105586498
As opposed to what, “my uncle who works at Nintendo”?
Anonymous No.105586878 [Report]
>>105576740
is Go that bad ass?
>>105581090
Yes they do and show up to every C++ vs Rust war thread whenever some Rust cultist talks about using it for backend.
>>105586382
LOL nice. Its x10 comfier than ASP.NET in C#
>>105586498
bitch bitch bitch, Cry cry cry, He has something working and it works for HIM. I love that instead of being owned by tech
>gotta be retarded and turn my life into a prison cell with techcompanies collecting all this data from me.
KEK, its like a nigger buying a 20c Ramen noodle for $1 in jail not knowing or caring he is paying for his own incarceration.

I hate tech larpers more than anything. You don't understand tech you just consume it. A user of the product. Good if you know it but you're not smarter than anyone for it. I hate people that make technology political.

2+2 = 4
ywnbaw
take meds not hormones.
Anonymous No.105586948 [Report]
>>105576987
based

i'm vibe coding a Flask app at the moment for the same reason