Why are most new Internet sites using Python or Ruby?
Source: Internet
Author: User
Cost considerations? Development speed problems? Or in the future? Cost considerations? Development speed problems? Or in the future? Reply: I don't know if a large proportion of new websites use python or ruby, but we developed the scallop Network Based on Python.
The main reason is the development speed. In my experience, to complete similar tasks, the Python code volume is half of that of Java. A smaller amount of code means faster development speed and less chance of errors.
In addition, I like Python syntax very much, basically in the form of pseudo-code (for example, the pseudo-code in the introduction to algorithms can be mechanically translated into Python ), so that I sometimes want to write a few lines of thought at will when writing a program, but I found that the writing was complete.
In addition, from the recruitment perspective, the Python programming basics are generally good, reducing the screening.
The last one, of course, may be available in all dynamic languages, that is, Fast bug change. No matter what the device is, there is only one ssh client. Once I had a meal outside, I suddenly saw an error reported by the Weibo user. Then I immediately logged on to the server using my mobile phone (now I changed my iPad) and checked the log. After I found that the program was wrong, directly create a hotfix Branch (we use git to manage the code), and then use vi to change the code. After the modification, it is OK to merge it back to the main branch, and then redeploy immediately. Secretly speaking, I am trying to use Go development on a certain internal service of my company. Low learning threshold and full database, suitable for rapid prototyping and iteration. Then, I got onto the thief ship and couldn't get down. It is mainly developed quickly.
If Rails is used, it is at least five times faster than PHP. In Hacker's view, Python/Ruby is cool than Java/C #, and Hacker is very consistent with startup companies. After writing Ruby for four months and recently writing Java, I feel uncomfortable. I think Ruby is very elegant, and Java is a bit cool. I think it mainly involves several aspects:
1. from the cost point of view, it is mainly about the deployment cost. The MS set won't be mentioned, and the Java set runs very hard on many virtual machines. Let's look at various clouds in China, we especially welcome python and php, many of which are billed separately for Java. After all, it is a bit more important to run the JVM, and there is no need for JVM-heavy virtual machines such as python. Compared with PHP, there are too many things that python can do. php is basically engaged in web page development, and others are quite difficult. python is based on its extremely rich library, which can be done regardless of website development, data analysis, and desktop applications, in addition, there are various libraries which are extremely efficient. In addition, the python code style is also considered concise. For the same function, code functions are much less than other languages. Ruby has never been touched and does not comment.
2. from the perspective of people, the Code farmers who write their own websites are still relatively geek fan. python is almost the standard for geek coders, just as mac is standard... however, we must clearly understand that python is a standard, not because it is used by everyone. Just like mac, python does have its unique characteristics. Based on its extremely concise language, there are also rich libraries, basically, python is quite handy. You can write a script on the server to process data, write a script to run a cron task, and so on, so python is indeed essential medicine for geek home travel.
3. in terms of efficiency, the framework for integrating python and ruby should basically end up with other languages. Although the language is not very popular yet, the cost of getting started is really low, and it is easy to get started with new languages, after all, it is script-based and quick to get started. After getting started, it is very efficient. In addition, most start-up companies simply do websites without complicated technologies and use the most basic things, what's hard for a website is to continuously support rising traffic. Moreover, these two languages are becoming increasingly popular, so it is better to find skilled workers in this area in the future. The real reason is:
Poor.
Windows + VS2013 + C # + SQL Server 2013 on all the rich websites are very convenient in terms of development efficiency, debugging, testing, tuning, and deployment. It is a pity that this solution requires burning money from start to end. Other languages except Python are cool. We use Python because we like it and it is easy to use. To use java, you need to build a development team of 10 members and launch the team within two months. Python only requires four people, three weeks. How to choose self-evident
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