script#

GWT vs. ScriptSharp Pros and Cons [closed]

做~自己de王妃 提交于 2019-12-05 15:49:02
We have determined it's too difficult for us to maintain the bulk of javascript we need to write full-scale "single page" javascript "applications". Relying on programming conventions still has left us wanting... especially in the area of refactoring. For developers new to these projects, they find it very difficult to change anything because they have no faith they know who else is truly relying on the component (things easy to do with "find all references..." and code access levels in strongly typed languages). We've been playing with GWT, but one of our developers wants to use Script#. We

Offsetting polygons in Javascript

会有一股神秘感。 提交于 2019-12-04 10:21:19
问题 EDIT5: Finally got Angus Johnson's Clipper library implemented in Javascript and selected Sourceforge for host. LIVE DEMO: http://jsclipper.sourceforge.net/6.1.1.1/main_demo.html Download source: https://sourceforge.net/projects/jsclipper/ Wikipage with step-by-step tutorial: https://sourceforge.net/p/jsclipper/wiki/Home%206/ Presentation of Demo Program including tens of sample polygons: https://sourceforge.net/p/jsclipper/wiki/Main_Demo%206/ I hope this helps anyone who needs polyline and

Why Haven't GWT- and Script#-style Frameworks Become Dominant?

半世苍凉 提交于 2019-12-04 03:57:36
With GWT, we can write code in Java and have it translated to JavaScript code. With Script#, we can write code in C# and have it translated to JavaScript code. It sounds GWT and Script# will save web developers from suffering javascript pains. Then, why these tools haven't been dominant? Why still people dedicated to write javascript code? Multiple reasons, and which one is most important differs from developer to deverloper. Here are two: Because JavaScript is a more nice/flexible/powerful/(insert adjective of choice here) language than Java/C# People don't trust the output generated by GWT

Should I use ScriptSharp

落爺英雄遲暮 提交于 2019-12-03 06:57:14
问题 I am developing my first ASP.NET MVC application and I beleive that Script# can help me a lot. But it cannot find the resource necessary to support my development. I could not find The codeplex site; There is only one manual, which is very good, but it is not enough; I could find very few tutorials; I know that Script# was used to develop ASP.NET MVC scripts and that the source of MVC distributes the library. But it seems that it is used only internally in Microsoft. Where can I find other

Offsetting polygons in Javascript

霸气de小男生 提交于 2019-12-03 05:38:35
EDIT5: Finally got Angus Johnson's Clipper library implemented in Javascript and selected Sourceforge for host. LIVE DEMO: http://jsclipper.sourceforge.net/6.1.1.1/main_demo.html Download source: https://sourceforge.net/projects/jsclipper/ Wikipage with step-by-step tutorial: https://sourceforge.net/p/jsclipper/wiki/Home%206/ Presentation of Demo Program including tens of sample polygons: https://sourceforge.net/p/jsclipper/wiki/Main_Demo%206/ I hope this helps anyone who needs polyline and polygon clipping library with offsetting features. EDIT4: The one possibility is to convert pascal to

Should I use ScriptSharp

丶灬走出姿态 提交于 2019-12-02 21:35:32
I am developing my first ASP.NET MVC application and I beleive that Script# can help me a lot. But it cannot find the resource necessary to support my development. I could not find The codeplex site; There is only one manual, which is very good, but it is not enough; I could find very few tutorials; I know that Script# was used to develop ASP.NET MVC scripts and that the source of MVC distributes the library. But it seems that it is used only internally in Microsoft. Where can I find other resources??? Do you really think that Script# will be continued and new versions will be deployed and it

How to write a function in script# to be called with any object as this, not just with the instance of the class in which it is defined?

蹲街弑〆低调 提交于 2019-12-02 03:41:18
问题 I am writing javascript in script#. I would want to write a function that looks like function myFunc() { if(this.value > 100) return true; else return false; } This function can be called with any instance which has a property 'value'. How can I write this function in Script#? In Script#, the generated javascript code seems to be making a local reference to this and doesn't work when some other object is passed as 'this'. 回答1: This is similar to being able to reference "this" inside a jQuery

How to write a function in script# to be called with any object as this, not just with the instance of the class in which it is defined?

混江龙づ霸主 提交于 2019-12-02 00:50:26
I am writing javascript in script#. I would want to write a function that looks like function myFunc() { if(this.value > 100) return true; else return false; } This function can be called with any instance which has a property 'value'. How can I write this function in Script#? In Script#, the generated javascript code seems to be making a local reference to this and doesn't work when some other object is passed as 'this'. This is similar to being able to reference "this" inside a jQuery callback function. See the Current property on jQuery class for example (https://github.com/nikhilk

Using Script# code with string operations in standart C# .NET project

主宰稳场 提交于 2019-12-01 23:16:11
I added reference of Script# to my standart console application. After that I was trying to invoke some method from there but was getting the following error: I suppose it happened on the following line: string[] lines = s.Split(';'); My assumption is that usual mscorlib library has not method public string[] Split(char separator) , but has public string[] Split(params char[] separator) Is it possible to write valid code with such string operations both for a Script# project and for a standart C# .NET project? Due to this problem I have to write duplicate code for both projects with minimal

Using Script# code with string operations in standart C# .NET project

拜拜、爱过 提交于 2019-12-01 21:49:50
问题 I added reference of Script# to my standart console application. After that I was trying to invoke some method from there but was getting the following error: I suppose it happened on the following line: string[] lines = s.Split(';'); My assumption is that usual mscorlib library has not method public string[] Split(char separator) , but has public string[] Split(params char[] separator) Is it possible to write valid code with such string operations both for a Script# project and for a