About Python

Why do you choose Python instead of other programming languages?

I like Python for a lot of reasons , one is that it is a very versatile language.You can almost do anything with it, such as building website, data analysis.
One thing that Python does really good is FOR building websites, Django, for example, is one of python's most powerful framework.
Instagram, Firefox, Pinterest are all built in Django.
Well, I think there are several reasons that make Python unique.

1. Python code tends to be more compact and readable than any other programming languages,

Unlike Java, reading python's code is like reading plain English, which is easy to understand. For example, Python determines the scope of a block based on its indetation, this also forces programmers to indent code blocks, which is a good practice. Given that I know English, choosing Python as my first programming is definitely a good choice.

2. Python is open and free

Because Python is open source, I can always look under the hood to see how things have been implemented. Some of my projects are based on the source code, such as the CURD, which is a reference from Django admin. What's more, I can get a view of what's really going on there by reading the source code, which is really helpful.

3. Future

As our world develops, it is impossible to live without Internet, so mastering a programming can help you to rebuild a value and bring you wealth.

What are the difficulities you encountered when you were learning Python?

Source matters.You have to have enough resources, videos and tutorials. YouTube channel is my first choice.

As for the difficulties,
The first thing that came to my mind is that you got to be careful with mutable objects such as lists and dictionaries when when passing arguments in a function.
These will cause the function accumulating the arguments on the subsequent calls.

Aother is similar, when I was developing the CRM, we found out that the request.GET is actually a object instantiated from QueryDict. This can be used as the query_params condition for redirection after the edit or deleting.
But this is a bit of tricky, this data type must be deepcopied before used, or it can lead to the data confusion.

Besides, exception handling is quite handy for API development. Under the proper use of try and except, it will help you with the error handling, instead of blocking the whole process.

Why do you quit your job?
Learning new stuff, such as concurrency, something like that,

There are currently three popular approaches to Python concurrency: threads, event loops, and coroutines.

你可能感兴趣的:(About Python)