Live data from Hacker News

Mono 3.2.7 is out

news.mono-project.com

51–60 of 116 posts

Re: Mono 3.2.7 is out

#51
post #43

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.

Roslyn and the MS/Xamarin partnership suggest Mono will be benefiting in some big ways in the coming year.

Re: Mono 3.2.7 is out

#52

MVC5 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

#53
post #11
post #5

Earlier 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).

OWIN will give some of what you are looking for.

Re: Mono 3.2.7 is out

#54

MVC5 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/

Unused parameter for lambda function.

Re: Mono 3.2.7 is out

#55

MVC5 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/

It's the 'Dynamic Dictionary' [0]. It's usually called 'parameters' but it's idiomatic in dotnet to name lambda input parameter '_' if don't use it in your expression.

[0] https://github.com/NancyFx/Nancy/wiki/Taking-a-look-at-the-D...

Re: Mono 3.2.7 is out

#56
post #33

MVC5 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.

There is also Fos (FastCgi Owin Server) https://github.com/mzabani/Fos

Re: Mono 3.2.7 is out

#57

MVC5 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/

It's dynamic path element.

    public SampleModule()
    {
        Get["/{id:int}"] = _ =>
        {
            int id = _.id;
            return "Parameter ID is: " + id.ToString();
        };
    }

Re: Mono 3.2.7 is out

#59
post #43

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.

Why?

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

#60
post #54

Earlier quoted context omitted.

On [1], what does the underscore mean? public SampleModule() { Get["/"] = _ => "Hello World!"; } [1] http://nancyfx.org/

Unused parameter for lambda function.

This is the most accurate reply. The expression

    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".
Post reply on HN