Test engineers, selected python or java?

Q: "Do you usually work with java python with more or more"?

A: "are also, choose a different language depending on the scene."

Q: "Like what?"

A: "to develop their own test platform, will choose java; run some scripts in centos server, select python or shell; some scenes pressure measurement, the pursuit of high concurrency, language may choose to go."

Q: "I java and python have learned some basics, I do not know what language the choice."

A: "You can first select a relatively good language to start with them."

It was two days before, one side of a small partner and my conversation.

I believe that many people have such a doubt, in the end the choice is their own python? Or java? As their primary language, so you can concentrate on the good will of linguistics, because a person's energy is limited after all. I'll throw my ideas and advice: " In fact, the language is secondary, after all, for the testing service, do not let the selected hinder the pace of our progress you need to do is act on the choice of python (in fact.! language does not matter, my advice, if not the foundation, started from python), first with up to say. Do not counseling, is doing! "

After take my own experience, the first two years I just started working mainly with java to do research and development, and later turned into a test engineer, found some scenes, better suited to achieve with python, and began trying to write a python. I never had a systematic to learn the basics of python, that is not what is used to look up the information slowly to roughly know how to play the python. Therefore, the programming language is used up, not learn it in! (This sentence is a little bit extreme, is my personal thoughts).

The following table is a comparison of java and python my finishing:

  java python Remark
Language type + Compiled interpreted language [+] Compiled interpreted language

 java and python are high-level languages, and the computer can not recognize

High-level language, so when they run, there will be a tool to turn high-level language into machine language can understand,

Compiled language: * If the running program will turn into machine language runtime runs directly, such as C language.

Interpreted language: the program is running, go to parse the meaning of the program, and then run.

Whether open source Yes  Yes   
Degree of difficulty Some relatively difficult The difficulty of some of the relatively small (just on deft) python simple language, will be faster to get started
The complexity of the language Relative knowledge is more complicated, but also more presentation materials Language is relatively simple, but the official introduction mostly English  
Operating speed fast slow

java-jre more powerful, in addition to the introduction of JIT compiler technology, faster execution

Features on the language

1. After each line of code to be added; is used to indicate the end of the code statement.

2. strongly typed language, before using the need to declare the variable type.

 

1. python do not need a semicolon at the end of the statement, but mandatory indentation.

2. weakly typed language, the use of a variable does not need to declare variables

 

My advice


 

  • If you do not have programming basics, then just start from python, python began trying to write some scripts, you can be targeted to solve some practical problems in the work.
  • python just get started faster than java. But to us, to solve the problem of realization of ideas is the key, so java and python difficulty in fact the same.
  • Short, do not waste your time "select java or python", but should use python (recommended) begin to act.
  • Action is always effective than words.

 

 

Guess you like

Origin www.cnblogs.com/zhouliweiblog/p/11491116.html