Can C # programming efficiency be comparable to that of Python and Ruby when Visual Studio is used?
Source: Internet
Author: User
Php Chinese network (www.php.cn) provides the most comprehensive basic tutorial on programming technology, introducing HTML, CSS, Javascript, Python, Java, Ruby, C, PHP, basic knowledge of MySQL and other programming languages. At the same time, this site also provides a large number of online instances, through which you can better learn programming... Reply content: C # Most things can be written in linq, which is similar to python at this time.
However, some things, such as the definition of classes, cannot be run. this is a congenital feature. Sometimes this is a good thing, sometimes it is a bad thing, depending on what you do.
The last point is your skill in what you use. Skilled users are always more comfortable than not skilled users.
No best, only applicable. Comments all contain severe personal feelings. In other words, if you develop a large system, you don't have to compare it. Instead, you don't have to compare it with developing scripts. If you understand it, you will not raise this question. From the question, we can see the conclusion,
C # is a programming language, which runs very efficiently! (It can be said that it is no worse than any language ).
Why do we usually think that c # is not efficient? it refers to the platform, startup stage, memory management, and integration. Of course, in general, it is because of the drag of the. net framework platform.
C # is not compiled into the target language, but compiled to the intermediate language. it is compiled to the target language in real time only when executed in a specific environment. This causes the c # program to be difficult to start. You have to attach the instance to the running environment. . Net framework.
. Net memory management is entrusted to the platform for responsibility. As a result,. net programmers basically do not intervene in memory management. basically,. net programs consume more resources and occupy more memory. Depending on gc discovery and recovery, gc operation also sacrifices the running timeliness rate.
C # The main reason why c # is hard to say is the drag of its platform. For example, c # is placed on a train of a diesel locomotive. The quality and inertia are too large, and it is quite difficult to start. It takes a long time to get rid of gambling, but once the train starts running (the compilation is complete, the memory is enough, and you don't need to release it manually, you can just put it there ), no one else can speed up the rest, just as quickly as a car.
C ++ is much better than a Ferrari sports car, with low quality, low inertia, and high horsepower. there is no platform drag down, and it is easy to stop and run. In the same program, the number of lines in C # is about 1/4 more than that in Python and Ruby, basically the number of lines occupied by braces. Practical experience has proved that the productivity of C # is comparable with that of Python/Ruby. Of course, some programs that are especially suitable for developing with the advantage of dynamic language features are exceptions.
If you are a Vim user, Visual Studio will greatly improve the editing efficiency after installing the VsVim plug-in. VsVim is a complete plug-in that supports advanced commands such as ciw.
Finally, the. NET program can run well on Linux through Mono. Although Mono's WCF and other features are not well supported, however, it is not much outstanding in terms of WCF. I think ServiceStack is a better solution. Can programming efficiency be influenced by languages ..
It takes a long time for some languages to write the target program.
However, most programming efficiency is not determined by the language type, but by the architecture design, algorithm, and data structure construction.
I don't believe in large programs. can you think faster than writing?
Therefore, the bottleneck of programming efficiency is not the language or IDE, but the level of posture! If I don't calculate the learning cost, I 'd like to be familiar with functional programming and. net users use VS to write F # programs, which is much more efficient than python and ruby. visual studio is such a powerful IDE.
C # the efficiency of such a powerful language is not low when it is used. C # It is superior to Python and Ruby in all aspects. I personally think the efficiency is relative, this depends on your proficiency and familiarity with the use of tools and languages, and whether the features of the selected language are suitable for the problems to be solved. many variables... use appropriate tools to do the right thing.
Some languages may be able to do anything efficiently without relying on any tool, such as python ruby. However, static pre-compiled languages such as c # and java are much more efficient in the case of IDE than abandoning IDE to use text editors. IDE is not just an editor. it is an integrated and all-in-one service for various development processes. it is not comparable to text editors, including highly scalable text editors such as VIM.
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.