My understanding of script# is not a lot of deep, but in the process of development projects in contact with a lot of script# write code, of course, they will eventually be compiled into JS.
Let me share some of the understanding of this language (or what we call a tool). One of the main references on GitHub is the introduction, a little translation-https://github.com/NikhilK/scriptsharp
Script# is a development tool that compiles the source code of C # style into JavaScript code, and its role is more prominent and effective when developing Web applications that require large-scale use of html5,node.js, such as script-based.
script# JavaScript as "Assemblylanguage of the Web", which is not to think that JavaScript is not suitable for programmers to develop directly, It's because JavaScript is very flexible and ubiquitous.
When we build relatively large-scale applications (such as the need to connect large databases, projects that require a lot of people and are divided into many sub-projects that require a long development cycle), the maintainability of code and the tool support for developing languages are important for improving development efficiency, while the C # language (such Asmsbuild, refactoring, unit testing, static analysis, code visualization, FxCop).
script# all these features to the developer, the developer is still in the build javascript-based Web app, just using another set of tools to help with this.
Therefore, it is not difficult to understand the original intention of script#: to combine the advantages of "high efficiency" and "well-known" in the C # language with the advantages of JavaScript's flexibility and cross-platform.
The script# now supports developers using frameworks such as Jquery,jquery plugins,knockout, and can be extended to be more compatible with other frameworks.
In addition to the benefits mentioned above, there are, of course, some problems:
I think the most prominent problem is: debugging is more troublesome. Imagine, completely with JS write code, we directly open the page, F12 plus breakpoints, debugging can. For script# write code, the compiler will eventually generate a JS file and the source code files have a large difference, developers need to search for the corresponding function and add breakpoints, debugging. In addition, when code changes, you need to re-build the new JS file for debugging. Therefore, in order to avoid repeated compilation takes too long time, simple changes we can directly for the JS file, when the changes after the code to meet our expectations, and then re-modify the code script# write.
The above introduction how much will be some one-sided or deviation, if you find that there is a problem, may wish to leave a message to me I will correct. Thank you.
// m.blog.csdn.net/blog/ericlee00/770634 2006 -6 - 3 read 7826 reviews Ajax is one of the hottest web development hotspots at the moment. Microsoft has also launched its own framework, Atlas, specifically for Ajax. However, many programmers who use C # for Web development are slightly depressed, and "Javascript" may not be their favorite. So Microsoft Architect Nikhil Kothari is leading the team to develop a language called "script#", another derivative of the Microsoft "#" language family. According to Nikhil Kothari, the script# language editor, in fact, is to make C # speech compiler generated JavaScript, rather than the usual IL (intermediate Language). This is done to make it easier for developers to write more readable scripting languages and better build on Atlas. However, script# has not yet been integrated into Atlas, but this is where they are working, and eventually integrated, for C # developers to build a script# /atlas the development environment. Think of Google Web Toolkit (GWT), perhaps a lot of Java developers will be interested in it, this toolkit can make Java programmers do not need to write any HTML and JS can easily build an AJAX application. This toolkit can convert your Java into JavaScript and HTML on your browser. So the script# /atlas combination will be a showdown against Google. F # VS Javascript, Atlasvs gwt,c# versus Java, is an interesting topic. But the benefit is the ultimate developer, there are more options in front of us.
About script# (SCRIPTSHARP)