Python and Ruby

Source: Internet
Author: User

Ruby automation came into contact with the company. After writing several examples and applications under the company's framework, I also summarized the comparison and feelings between Ruby and Python development in the past. Of course, I know that comparing the advantages and disadvantages of the two languages is a never-ending topic. Besides, I have been using them for a long time and cannot fully judge them, therefore, I am only subjective about the two languages. Even through objective experiences, the focus is not to identify the language.

At school, Python became my first scripting language for project development due to the relationship between topics. I am used to the programming format of the C language type. The first option to use python is its writing format. Strict indentation determines whether the program can run, and whether the syntax is correct or not can only be temporarily retired. This rule greatly reduces the use of symbols and strictly follows the original intention of simple Python syntax. When searching for materials, I found that many people mentioned that, when learning this language, many Python ideas were ignored, and finally the code was written, it's just a different language. Do not change the dressing. With the increase of learning time, I have learned about this phenomenon. Because of the flexible Syntax of Python, many lines are required in the past to complete the function. Here, you may even need only one line. There are many methods. As long as you find the best way to use them, this will undoubtedly provide programmers with a greater degree of freedom and space to play. According to the implementation steps in your mind, you can use simple syntax to put it into reality step by step.

As long as the company's Ruby is used for automated testing, there are a lot of subtleties in Ruby, and it has to be learned and understood again. it seems that Ruby cannot be quickly learned at all. The previous experience in using languages also plays a more negative role than the positive one. However, because the applications involved are basically page element operations, although some of the page element search will use related logic programming, but ruby is very heavy with Perl's there is more than one way to do it. as a result, the program you have written has a lot of room for optimization. Maybe it can be improved slowly only through continuous practice, and there is not much room for superficial learning and progress.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.