3 ms·
I have to ask, what is then the point of using Python as a backend (not questioning for data crunching)? Funny thing here is that PHP works exactly the same wi
by tored 5y ago
I have to ask, what is then the point of using Python as a backend (not questioning for data crunching)?
Funny thing here is that PHP works exactly the same with its share nothing architecture. You always need to go outside of PHP handle state between requests.
When I started doing PHP years ago this was one of the first things I stumbled upon on, used to being able to easily share state in a backend. Juniors or non-programmers does usually not think about this at all and thus is not limited by it, whereas programmers with experience from another language, but without any deep PHP knowledge, will always trip up on this, finding it awkward and annoying (like I did).
And yes, the share nothing architecture will change how you write programs. Now many years later I'm used to this and don't see it as problem anymore (almost the opposite).
But if you also need to follow the share nothing architecture on Python, what benefits does it give vs PHP? Is it the community only? Because Python is generally slower than PHP.
I don't consider myself as a Python developer, but based on my knowledge I have hard time finding compelling arguments for picking Python as (web) backend. I rather pick PHP (I have bias), Golang or Java. Nodejs vs Python it a tough one, perhaps nodejs because I can write in TypeScript, but nodejs is not a technology I like.
- miohtama 5y ago> the share nothing architecture on Python, what benefits does it give vs PHP A programming language with better ergonomics, developer experience and more mature community.
- tored 5y agoHow does Python have better ergonomics? Better developer experience for Python is probably true, more mature community I can't say either way. Edit: One thing that would be nice in PHP is decorators.
- guggle 5y ago> Edit: One thing that would be nice in PHP is decorators. 15 years I used to say "I wish PHP had feature X just like in language Y". But there's a moment where it's better not to wait and just to use language Y.
- tored 5y agoPhp 8 has attributes, I’m experimenting with implementing decorators on my own.