I am struggling with php or python. I like python a little bit. I can do it both on the front and back ends, and it is more efficient and the syntax is attractive. But php seems to be better looking for a job. Baidu, Sina, and XXX are mostly PHP. is it swollen? Please help me. thank you! I am struggling with php or python. it will be a little bit. I personally prefer python and can do it both on the front and back ends. it is more efficient and the syntax is attractive. But php seems to be better looking for a job. Baidu, Sina, and XXX are mostly PHP. is it swollen? Help me. thank you.
Reply content:
I am struggling with php or python. I like python a little bit. I can do it both on the front and back ends, and it is more efficient and the syntax is attractive. But php seems to be better looking for a job. Baidu, Sina, and XXX are mostly PHP. is it swollen? Help me. thank you.
Many beginners may ask, "what language should I learn? what language should I look? ". I think this problem is a misunderstanding. a programming language is generated because it can solve one or more types of problems more conveniently than other languages. So I think the first thing you should consider is what you like to do? What kind of work do you like? Then, you can choose to learn a language. learning with problems is always more efficient than learning a language, rather than blindly choosing a language. For example, if you are interested in the front-end, you may need to learn JavaScript in depth, rather than digging C.
First .... .... 1 .... Yes .... .... You are not a vegetarian developer of PHP backend ....
Then .... Then .... .... 1 .... Yes .... .... Python efficiency is high .... Well, the development efficiency is high .... (Hitting the wall)
Language considerations
PHP and Python both have a long history, both have a large built-in tool library (especially Python), and have a very complete documentation system. It can be said that PHP and Python both show the common characteristics of "small scripts stimulate big demand" to a large extent.
So a simple consideration is: Almost everyone goes deep... It can be better than learning... It is unreasonable to hesitate.
Other technical considerations
However, although the language is largely the same, it is not just the language itself. Take Web development as an example: HTML/CSS/JS, SQL, regular, JSON/XML ...... These peripheral knowledge comes with PHP and Python, but they are not completely covered by the language itself.
In fact, no matter what engineers are hired, there is an implicit assumption: in addition to the language, programmers also understand the necessary peripheral knowledge to achieve business goals.
Therefore, do not isolate or separate the language.
Technology-independent considerations
Although language selection does not matter, it may not be a good choice for the subject method.
Simply put, programmers use the language to achieve their goals, rather than the language to use the language. The argument "I must study Python and use Python for everything" is simply a tough one.
Therefore, it is better to select a target if you select a language. Follow the development work you want to undertake, learn what you need, and be sure to learn quickly, quickly iterate, and quickly update. In this age when the open-source movement became popular in the world, it was generally ridiculous to have a rare taste of things. Because I had to wait for a long time to learn from it, the rivers and lakes had changed.
Don't think about how to make a perfect start or create a "complete" plan for yourself at the beginning. Dream. Continuous learning, iteration, and discovery of previously expected things are of no value, and discovery of previously ignored things is actually very useful. this is the way of human life. The transformer is born, and the immutator is dead. do not lock yourself to a specific thing.
Can be done on both the front and back ends ??? Is Python a frontend?
Since Python is preferred, enterprises that use Python in Tianchao are not absent, such as Douban.
Finally let's look at the domestic companies using Python, maybe you won't be so tangled: http://www.zhihu.com/question/19555512
In fact, I have also been struggling with whether it is the excellent or the Great North, and whether my wife will choose beautiful faces or pretty breasts in the future, and so on. Cool, in addition to assembly, computer languages are all figured out. mastering one language is nothing more than a benefit to learning another language, unless you dare say that you use the lower right corner of the keyboard you just finished typing a photoshop for me with the keys 0 and 1.
If you like Python, go deep into Python. How nice it is to go deep because you like it.
Python can also find a job.
When you have free time, you can learn what you want to learn.
I have also struggled with this problem like you. In fact, the language is almost the same. when you learn one, it is easy to get started with another. If you like python, start with python. python is a very common language. You can easily access algorithms, desktop programs, scripts, linux, servers, web development, and other aspects, which is very beneficial for long-term development.
I am a beginner in python, so I feel comfortable with python during the learning process. It is undeniable that php is also a great language. it can be seen from the popularity of php. it is not easy to learn, and the learning curve of php is not familiar, however, if you do web development, you can start quickly. For more information, see php.
Finally, do not stick to the language you want to learn (of course, it is also necessary to learn one or more languages '.
I have also struggled with similar issues before, whether to choose Python or Ruby. after searching, you will find that the supporters of the two camps are overwhelmed, I think the simplest way to choose a language is to search for the cool products made in this language. whether it is the frontend or the backend, which one you want to do, for example, Douban uses Python, or the Segmentfault you are asking is written in PHP. I have never touched on PHP and may be somewhat biased. I chose Python at the time, just because first, it was easy to use. Second, it was because "Life is short, I use Python. In retrospect, choosing a language is not as complicated as you think.
If you want to learn more deeply, you don't know whether you are learning common frameworks or runtime. The former is basically accumulated by a little bit of project experience, the latter requires you to understand the C language, compilation, and other things. However, no matter what you choose (you can also consider JS), Python and PHP are all scripting languages. we recommend that you only learn one language for the same type.
For job search, unless the probability is % 100, you may all fall into that small probability area. Since PHP and Python are both one of the top 10 languages, and Python has been used in China for about years (refer to the above link to Douban), it has now reached a relatively mature stage, almost all open APIs have Python versions, which means backend support is required. In addition, Paas Cloud Computing (Baidu and Sina you mentioned) supports both Python and PHP platforms. So I don't think your choice should be good at finding a job.
I used to struggle and grow up with Tsinghua or Peking University, but I thought about it later. I 'd better try to get on the second line first.
A language is a tool. you can select one at will and study it in depth.
At first, you may think of a language as a omnipotent Hammer. for example, I thought php was very good at first. After a few years, I found that every language has its own strengths. The so-called existence, even if it is reasonable, is like lisp, the street is like php, and some people are using it, and others are learning. When you find that some php jobs are not competent in some scenarios, you will find another language that is competent.
My suggestion is that since you like python, you should first learn python. More and more. You do not need to despise php, because criticizing things you don't know will often expose many of your own shortcomings.
I wish you a successful career.
I have always wanted to talk about the relationship between finding a job and learning a language. I want to learn mathematics, algorithms, and operating systems.
I have read a phrase "first practice can make myself eat, and then do what I like". it may not be the original story, but it probably means this. if you are struggling with work, now, looking for a job, we are sure that there are more php jobs and a lower threshold for beginners. in turn, I really like to do some things and do some programming, so I like what to do. To say more, the quality of work does not depend on a programming language (or even your individual skills). the popularity and popularity of programming languages cannot determine the salary level, I saw a report from a few years ago, and the programming language with the highest annual salary is erlang. so, just make your choice and see what you are more focused on.
This is a simple question that I have struggled with before.
It mainly depends on your learning purpose. if you want to learn PHP for job search, you can learn Python if you are interested. after finding a job, you can learn Python.
You can check whether a large recruitment website recruit more PHP resources or Python. First, we need to solve the basic problem.
Other documents, tool libraries, and other things are not taken into consideration. There are basically alternative solutions. only mature companies can use the features of various languages, compile appropriate programs.
Learn as needed!
However, if you are a student, I personally recommend python to learn the language!
Previously, a Python user of the gods spoke about this matter. sorry, I forgot his name.
PyTHON is suitable for lightweight and mid-volume project architectures with high efficiency.
However, the user volume and the structure of the user are also good, and the efficiency will be terrible.
Using python on some plug-ins for computing purposes alone is a good choice. No.
As for my personal experience, Tomei's 2.7/3.3 versions are annoying, and various connection failures will lead to higher development efficiency when the development community unifies the use of python.
I think it's not hard to learn more about c, data institutions and algorithms, operating systems, networks, and databases.
I am a Cainiao.
In my opinion, people who have nothing to do with language are very easy to avoid. Any factor has a certain impact, but the impact is not absolute, it depends on how you weigh it. Now that we are discussing who is better suited to web development (generating html) for pyhon and php, don't talk about anything else.
I used to use python as a website. Django, tornado, and flask later. Later I learned php. In general, I must regard python as my first language, because it is streamlined and can directly call the C dll. I can use it for numerical computation, GUI programming, and so on. I am not familiar with php, as if there are not many other applications. Php5 integrates an object-oriented concept, which is very similar to java syntax. anyone who has learned the c language can get started quickly.
Although I love python, python is not as good as php for ordinary websites.
1. use templates in python web frameworks, such as jinja2. In fact, this is very similar to php. It seems that php is imitated. However, php has a dedicated IDE, while python templates are independent, with slightly different syntaxes and no IDE, which is not so comfortable to write.
2. add the python code with the template code = php code. In this way, it seems that python is not as uniform and smooth as php in developing common web.
3. php syntax is similar to java, and recommended interface writing is suitable for large-volume code farmers. big companies must like it.
4. the server overhead of php should be smaller than that of python. Php servers are easy to find. there are not many python servers, but fewer ruby servers.
Note: I am just talking about a common website. as for complicated logic such as background data collection and analysis, php is not as good as python. However, if you are a newbie and are struggling to develop a website using python or php, I suggest learning php in view of its directness and pertinence (that is, it is born for the web. Of course, html, js, and css must be understood.
What have I learned before? Choose your preferred one or your preferred job.
Actually, it's quite simple.
If you are eager to find a job with a high salary, you can learn php first, work is stable, and you can have time to learn your favorite python.
If you are not in a hurry to find a job, you can study python and then php. In fact, a language is proficient, and other languages are very quick to learn, you only need to understand the syntax of each language.
The logic is exactly the same. for example, if you write a simple crawler to crawl the text in a webpage, your logic should be: first crawl the entire source code and then use regular expressions, or use the ready-made library to extract the text.
Then you can use a language to implement your logic. In fact, all languages can be written, but the syntax is different, but the logic is the same.
So I think you should learn php first and find a job with a higher salary. at least you don't have to worry about material life.
Then I learned more deeply. at this time, I should pay more attention to some peripheral programming knowledge: Databases, algorithms, and so on. These are all required by any language and the only way to go to Daniel.
I started to learn programming in the next step. at the beginning, I also struggled with what languages I learned. Maybe it's too impatient. The current mentality is to learn from python, learn well, and then learn IOS. there are other basic knowledge. The goal is to become a full-war development engineer.
Work together ~