I am still so frustrated that Mono got lambasted for being a M$ trap. It was the biggest FUD I have ever read. Hope to see mono return to use in Linux community again.
Mono 3.2.7 is out
51–60 of 116 posts
Re: Mono 3.2.7 is out
#52MVC5 still not working tho. Good thing we have Nancy. Edit: Seems like many do not know about Nancy, check it out, some even say it's better than MVC. The good side is that it's 100% compatible with Mono because they run tests against it too so you can host your C# websites on Linux. Github: https://github.com/NancyFx/Nancy
public SampleModule() { Get["/"] = _ => "Hello World!"; }
Re: Mono 3.2.7 is out
#53Earlier quoted context omitted.
I had the same problem. I googled "Mono Nancy" and eventually found this: https://github.com/NancyFx/Nancy EDIT: It seems to be a .NET clone of node.js
.NET clone of node.js would be nice, because I like the idea of node.js but not enough to ditch all my .NET stuff (especially entity framework).
Re: Mono 3.2.7 is out
#54MVC5 still not working tho. Good thing we have Nancy. Edit: Seems like many do not know about Nancy, check it out, some even say it's better than MVC. The good side is that it's 100% compatible with Mono because they run tests against it too so you can host your C# websites on Linux. Github: https://github.com/NancyFx/Nancy
On [1], what does the underscore mean? public SampleModule() { Get["/"] = _ => "Hello World!"; } [1] http://nancyfx.org/
Re: Mono 3.2.7 is out
#55MVC5 still not working tho. Good thing we have Nancy. Edit: Seems like many do not know about Nancy, check it out, some even say it's better than MVC. The good side is that it's 100% compatible with Mono because they run tests against it too so you can host your C# websites on Linux. Github: https://github.com/NancyFx/Nancy
On [1], what does the underscore mean? public SampleModule() { Get["/"] = _ => "Hello World!"; } [1] http://nancyfx.org/
[0] https://github.com/NancyFx/Nancy/wiki/Taking-a-look-at-the-D...
Re: Mono 3.2.7 is out
#56MVC5 still not working tho. Good thing we have Nancy. Edit: Seems like many do not know about Nancy, check it out, some even say it's better than MVC. The good side is that it's 100% compatible with Mono because they run tests against it too so you can host your C# websites on Linux. Github: https://github.com/NancyFx/Nancy
What *nix needs is an OWIN compatible web server.
Re: Mono 3.2.7 is out
#57MVC5 still not working tho. Good thing we have Nancy. Edit: Seems like many do not know about Nancy, check it out, some even say it's better than MVC. The good side is that it's 100% compatible with Mono because they run tests against it too so you can host your C# websites on Linux. Github: https://github.com/NancyFx/Nancy
On [1], what does the underscore mean? public SampleModule() { Get["/"] = _ => "Hello World!"; } [1] http://nancyfx.org/
public SampleModule()
{
Get["/{id:int}"] = _ =>
{
int id = _.id;
return "Parameter ID is: " + id.ToString();
};
}Re: Mono 3.2.7 is out
#58Re: Mono 3.2.7 is out
#59I am still so frustrated that Mono got lambasted for being a M$ trap. It was the biggest FUD I have ever read. Hope to see mono return to use in Linux community again.
The nix world never suffered from lack of decent languages, compilers, development tools, ecosystems and runtimes. The only benefit Mono gives nix users is to write software that's easy to run on Windows and that barely registers on most priority lists. It's been, IIRC, 6 years since I last wrote a "real" desktop app. I did it in C#, but Mono couldn't run it because it relied on Windows-only GUI components. Happily, it was never intended to be deployed on non-Windows environments and everyone was happy.
If I needed to write a desktop application (that's so 90's) that runs identically on both Windows and Linux, I'll just write it in Java.
Re: Mono 3.2.7 is out
#60Earlier quoted context omitted.
On [1], what does the underscore mean? public SampleModule() { Get["/"] = _ => "Hello World!"; } [1] http://nancyfx.org/
Unused parameter for lambda function.
Get["/"] = _ => "Hello World!";
is actually of the form a = b;Where "a", i.e. "Get["/"]" is an array-like property (http://msdn.microsoft.com/en-us/library/2549tw02.aspx ) and the "b" value assigned to it is an anonymous function with one parameter, i.e.
_ => "Hello World!"
In Nancy these handlers are of the type Func ( http://msdn.microsoft.com/en-us/library/bb549151(v=vs.110).a... ) The parameter could be given any legal name, but an underscore is a convention meaning "I am not using this param".