+ 9

Why is Python is so popular?

Every language has pros and cons. We know that Python is really slow. Not pythons, the language xD. Also, its syntax is quite simple compared to other languages. But why Python and not Ruby or example? What do you think?

7th May 2017, 10:32 PM
Gami
Gami - avatar
4 Respuestas
+ 8
For most purposes CPython is more than fast enough and it will save you time if you work on smaller projects or codes, as you won't have to compile anything. If you really need performance, you can still write C modules or use a library like Tensorflow (written in C++ and CUDA). There are so many other great libraries for whatever you want to do and a single from bla import blub can save you hours of work and probably give you something better than you could have build yourself in any reasonable amount of time. Well, the last point sounds somewhat tautological, a la "it's popular because it's popular", so there are probably other reasons. A few for me: The syntax is great: clear, readable, makes things look easy. With imperative, functional and object oriented programming, I have all the paradigms I need. Especially functional programming is important to me. First of all, it's so much fun, but the code is also extremely readable, written fast and parallelises easily.
7th May 2017, 11:27 PM
Tob
Tob - avatar
+ 6
it is easy
9th May 2017, 10:45 PM
NimWing Yuan
NimWing Yuan - avatar
+ 2
I think its very handy, for simple or complex tasks I don't have to write 1000 lines of codes. Due to less line, its easy to debug. if one script takes an hour to write in python, suppose in c it takes 1.5 hours. The execution time of 1 mint doesn't really matter to me. When I use scripts for penetrating purposes, it needs much modification and portability, I wouldn't want to waste hours waiting for compilation and debugging.
7th May 2017, 11:09 PM
xCalifier
xCalifier - avatar
+ 1
Python is probably the most popular starting programming language, it is easy to use, and the community will help you with problems
8th May 2017, 4:48 AM
DRAGONGAMING
DRAGONGAMING  - avatar