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.