Discussion in 'Programming' started by aesthetiqclinic, Mar 26, 2018.
what are the applications of this language?
Its used for a lot of stuff, web, solar power to see what you collect in power, domoticz. It is used for lots of stuff what i understand its easy to learn and can do a lot.
so it can be used as an alternative tool in web development?
Yes but Python is also use in software like 3ds max, Coral Paint Shop Pro, EVE-Online company like Industrial Light & Magic uses it in movies. Honeywell also uses it for their products. You can look here https://stackoverflow.com/questions/1909512/what-is-python-used-for for more information.
What i under stand is that Python is easier to understand then PHP.
Stack Overflow's arrogance:
Yeah, they don't play at stackexchange. I've used it extensively as a reference for coding issues, but the environment can be toxic.
Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming
Mind that Python has an awful performance, so you probably shouldn't use it for code that should be fast.
Yes, see e.g. Django. Or check out rafalp 's Misago forum software.
We have stuff in Python here at work and mostly it outperforms PHP at the same tasks, so... in what situations have you seen it perform slowly?
I have never managed to write Python code that was even remotely as fast as C code.
But I actually like Flask for prototyping web projects.
Well, that's not really surprising... given that C is compiled down to machine code and Python... isn't, especially given some sense of bytecode in its implementation. Same reason C will usually outperform Java...
It's an Interpreted language so of course it isn't going to run as fast as C or anything else you compile down to machine code. I'll grant you Python is slow and always has been but PHP and Perl have always been in the same ballpark. PHP 7 is supposed to be faster but given the fact that it has always been less useful than Python/Perl one wonders why it took them so long to best them.
The point of something like Python is that you can put something together quickly and have it run anywhere. You can go back and edit it without much trouble or spending time re-compiling and testing the program over and over again. You can give someone a script and know it'll run no matter what machine or OS they want to run it on.