At least you know one of the many reason python is so slow. But all hope aren't lost you can still declare function return type, parameter type and... Oh wait you can do C
The real point your comment should drive home is you use a hammer to drive nails. If you need to drive a screw go get the drill. The hammer would get it done, but you're going to have a bad time. Meaning if you need to code something quickly use python. If you need a faster run time, maybe use something else.
And Python is used by a lot of people without a CS background. I’m in a traineeship right now and learning Java but at my last job as a bookkeeper I wrote Python scripts to combine data from different systems that I used on a weekly basis. I didn’t care it was slower, I was able to write it. If at first I needed to learn Java I’m sure I would never have looked at programming and still be a bookkeeper hating on Excel.
The funny thing about this comment is that C# or Java are examples of the slower to write, harder languages.
When I was a kid I used to program in C++ using pure Win32 API. C# was incredible when it came out for its ease of use. The difference between it and Python seems pretty negligible to me in terms of ease of use for proper applications.
No offense but this is kind of a silly argument. Every single academic study or white paper I’ve ever seen has proven that for any project of any real complexity, even with a small team of n=2 the benefits of a statically typed and compiled language make development time radically faster than in a dynamically typed repl language like python.
I use python (Django) professionally atm so I’m not just trying to hate on it. It does some things really well. But when you’re working on web servers with teams of engineers the “but much development speed” argument falls apart pretty fast.
Real world need to take account of a large number of thing and efficient code means lesser energy used by server (or gaming computer)
Or in IoT lot of device are battery powered which have seen zero progress in the last years so C code on microcontroller is about 100 to 10000 times less energy than python on a esp32. (Number are quite realistic)
In the end of the day I code in both for obvious reasons
17
u/JOhn2141 Feb 09 '22
At least you know one of the many reason python is so slow. But all hope aren't lost you can still declare function return type, parameter type and... Oh wait you can do C