5 reasons why Python is a good language

preview_player
Показать описание
In today's video I'm going to be give you 5 reasons why I think Python is objectively a good language.

▶ Become job-ready with Python:

00:00 Learning Python made simple
00:05 Intro
00:32 1. Easy to learn
01:32 2. Easy to use
02:33 3. Glue language
06:27 4. Consistent
08:20 5. Unique
10:34 Your thoughts
Рекомендации по теме
Комментарии
Автор

3. I wouldn't consider libraries the definition of a glue language. A glue language is one that facilitates scripting to interact with programs in other languages. For example if you have a C program that generates an output file and a Java program that consumes similar data, a glue script would call the first program, report or log its success, capture the output, reformat the output as needed, and then call the Java program with that data, monitoring its results.

jsn
Автор

I really enjoy writing python and was disappointed at how superficial your reasons are. You could have mentioned things truly unique to python such:
- Powerful runtime introspection that lets you modify basically everything about the language while running, including the AST, almost like LISP without Sexprs
- Only OO language im aware of that allows for overloading the behaviour of everything about an object (think about all the dunder methods). This is what allows for such transformative APIs, such as pandas.
- Cpython's simple execution model (not being a true isolated VM) means you can do very low level I/O and access syscalls without leaving python, something which JS and JVM cannot do.
- one of the simplest FFIs thanks to the consistency of everything in cpython being a pyobject pointer which allows for so many C/C++ libraries.

These are just a few examples that I believe make python such a unique and special language. Notice how I mentioned nothing about its syntax. Overall I'm very disappointed at your reasons.

asierxs
Автор

Why does the float number win arguments against the integer? Because he always has a point

loyui
Автор

About people classifying python as slow because it's 'interpreted':
1. Once it's intererpreted, you have a compiled version, if you don't change the code the compiled version is run. So compiling is just interpreting with extra steps.
2. Python shell lets you inspect objects in memory space like a debugger would, but you can simply continue coding in the shell (even after an exception happened). Compiled language would have to recompile the whole thing and re-execute the whole thing.
3. The time when CPU time cost more than developer time is long gone.
While I'm stomping on other languages, please explain me why brackets exist :D

nargileh
Автор

Are you starting to use double quotes in python?

appybane
Автор

Good video, bad reasons:

Easy to Learn - this is really subjective, you can't measure easiness of learning.

Easy to Use - all high level languages abstract most of the system logic and functionality, and you don't need to know even about the Garbage Collector, let alone memory allocation.

Glue language - all major languages have libraries already written by someone else, so you won't have to reinvent the wheel.

Consistent - I am not aware of languages, that break older apis or functionalities to the point that will make your code not run whatsoever.

Unique - Yes, it doesn't require semicolons and curly brackets, but that can also be a bad thing. With curly brackets and semicolons your brain learn how to "frame" what you are looking at, and you analyze the code very easy with just a glance. In Python instead of looking for curly brackets and semicolons you now have to scan for indentations and empty lines. It's the same difference.

Sartheris
Автор

These are also the reasons why it is not a masterpiece.
This is coming from a technically not so technical person.

Easy is not the same as good. Actually, Python is more of convenient than easy.

Also, idk what programming languages are copying, Python.

asagiai
Автор

(Obama making himself wear a medal meme)

thegreekgoat
join shbcf.ru