For the most part, Python is not as good as you might think.
There is a certain stage in a developer’s career where developers go from contributing to a project to mastering their craft. This stage will come early for some people, some will come later, and some people will not be able to reach this stage.
Most developers with longer careers go through this phase, though. I call this my own build point.
If you’ve reached that stage, the first question you face is: how does it work? How is the user experience? What is the architecture like? How does data flow? and many questions like this.
I won’t answer these questions for you here. No matter which project you start, they all need to be highly customized to the project, and each should have at least one separate article answering it.
However, I would like to answer one of the questions: which language is best for this project?
You might think it depends on the type of project, yes, but every programming language has some flaws. In fact, Python also has a lot of flaws, especially when you try to use it to build a large program.
The variable declaration does not exist, this is a problem
The Zen of Python says: Explicit is better than implicit. But when it comes to variable declarations, implicits are more common in Python than explicit. (Note: Zen of Python refers to the guidelines for programming in python written by Tim Peters.)
Let’s take a look at the following snippet of C code:
char notpython[ 50 ] = "This isn't Python." ;
Before comparing Python, let’s delve into the following question.
“char” is a type identifier that means everything after that is relative to a string. “notpython” is the name I gave this string. [50] means that C will reserve 50 characters of memory space for this. In this case, though, I can use 19…
The post Don’t use Python if you’re starting a big project… first appeared on Lenix Blog .
This article is reprinted from https://blog.p2hp.com/archives/8994
This site is for inclusion only, and the copyright belongs to the original author.