Post by account_disabled on Jan 23, 2024 5:54:08 GMT
Python is a popular tool among our developers. It is used to design websites, desktop applications, games, etc. Probably the only thing it cannot handle is writing an operating system. In this area, the C language has no competitors. However, for tasks related to the administration of Linux-based operating systems, it is ideal. This is probably why Python is included by default in the Ubuntu distribution and is actively used by system administrators as a server scripting language, and the bulk of server utilities are written in it. Why is Python so popular among developers, system administrators, and people involved in various mathematical research: neural networks, machine learning, etc.? First of all, it is worth noting the simplicity of its syntax and brevity. The fundamental difference between Python is considered to be the design of block code structures: loops, conditions, contents of classes, methods and functions.
In traditional languages, it is customary to use curly braces to hig B2B Email List hlight such blocks, which interferes with working with complex nested structures where it is necessary to determine the beginning and end of a long block. Quite often I have experienced a feeling of discomfort when I missed or inserted an extra curly brace. In Python, this is done using indentation (spaces or tabs). This improves readability and disciplines the developer to use indentation as a control structure, and not just as a stylistic design element. This gave rise to the so-called “Pythonic style” in programming, and a number of languages adopted this principle. Python code does not contain “extra” characters. For example, dollar signs in front of variables or semicolons at the end of each line, or using var at the beginning of variable declarations. This is pleasing because You need to type less text. You don’t have to keep in mind elements that do not affect the logic of the code, or can be positionally calculated by the interpreter itself.
After I got used to Python (after PHP), such elements began to cause discomfort. Why are they? After all, it turns out that you could do without them! By its nature, Python is quite democratic, it allows you to use both a procedural and an object approach. Many traditional and widely used design patterns are built into its syntax: decorators, generators, singletons, etc. All OOP concepts are present, although they are not particularly sophisticated as in C# or Java. Importing libraries is intuitive and simplified as much as possible. Everywhere the principle of minimalism and explicit designs is maintained (without any magic with a tambourine). Where you need to navigate through the file system (when importing) or access to object methods, you will use only a period, and not slashes, arrows, etc. Of course, these are all little things, but you get used to them very quickly because it’s convenient and understandable.
In traditional languages, it is customary to use curly braces to hig B2B Email List hlight such blocks, which interferes with working with complex nested structures where it is necessary to determine the beginning and end of a long block. Quite often I have experienced a feeling of discomfort when I missed or inserted an extra curly brace. In Python, this is done using indentation (spaces or tabs). This improves readability and disciplines the developer to use indentation as a control structure, and not just as a stylistic design element. This gave rise to the so-called “Pythonic style” in programming, and a number of languages adopted this principle. Python code does not contain “extra” characters. For example, dollar signs in front of variables or semicolons at the end of each line, or using var at the beginning of variable declarations. This is pleasing because You need to type less text. You don’t have to keep in mind elements that do not affect the logic of the code, or can be positionally calculated by the interpreter itself.
After I got used to Python (after PHP), such elements began to cause discomfort. Why are they? After all, it turns out that you could do without them! By its nature, Python is quite democratic, it allows you to use both a procedural and an object approach. Many traditional and widely used design patterns are built into its syntax: decorators, generators, singletons, etc. All OOP concepts are present, although they are not particularly sophisticated as in C# or Java. Importing libraries is intuitive and simplified as much as possible. Everywhere the principle of minimalism and explicit designs is maintained (without any magic with a tambourine). Where you need to navigate through the file system (when importing) or access to object methods, you will use only a period, and not slashes, arrows, etc. Of course, these are all little things, but you get used to them very quickly because it’s convenient and understandable.