News for hackers. Stuff that matters.
Re:Announcing September 2016 Updates for .NET Core 1.0 by alimbada on Wednesday September 14, 2016 @06:03AM (#12495391)
It's great to see the HN community responding positively to news about .NET/Mono and related tech. I've been working with C#/.NET since 2008 and always felt it's a vastly superior platform to Java in every way. It's a shame it is taking so long for the wider tech community to realise this.
Re:Announcing September 2016 Updates for .NET Core 1.0 by marcusarmstrong on Wednesday September 14, 2016 @09:25AM (#12496595)
I've spent the two halves of my career thus far working on each stack, and I really can't see where those sorts of claims come from, honestly. C# as a language is a win over Java, but from an operational perspective, it's a disaster--IIS is an absolute nightmare. Beyond that, I tend to think that because of the niceties that C# has over Java, that has somewhat held back .NET community adoption of some better practices (specifically immutability).

All that said, .NET Core is a huge win on the operational side of things, so it's definitely moving in the right direction.

Re:Announcing September 2016 Updates for .NET Core 1.0 by GFischer on Wednesday September 14, 2016 @10:26AM (#12497142)
IIS was really bad (has gotten better), but I don't see most Java EE stacks being much better.

At my last job we had two teams, one had a .NET stack, and the other had a Java EE stack, it was almost like someone had set up a lab to test which one was better (both were required to deliver very similar style LOB applications, one for one department and the other for another).

The .NET team consistently delivered a lot more value faster, and the Java deliverables always had reliability problems which they attributed to the JBoss setup. To be fair, the Java side was hampered by an "old-school" architect who refused to use the right tools for the job (even on the Java side, there are pretty decent frameworks and IDEs).

Re:Announcing September 2016 Updates for .NET Core 1.0 by slap_shot on Wednesday September 14, 2016 @09:55AM (#12496862)
I've also spent two halves of my career on each and I recently had to do a project that involved building a data pipeline on Azure. All of the C# pieces (HTTP endpoint, event consumer) were written in C# and deployed at Azure App Service/Cloud Services. I could have easily deployed the code in Docker containers running Linux, but the App/Cloud service deployment is very nice and abstracts the entire web server (Kestrel) away.

Anyway, I agree that operationally .NET has struggled, and of course the community was much different than other open source solutions, but it both have gotten much, much better in just the last few years.

Re:Announcing September 2016 Updates for .NET Core 1.0 by topbanana on Wednesday September 14, 2016 @09:36AM (#12496686)
.Net isn't IIS. It's just one web server that can host it. And I'd take IIS over WebSphere any day!
Re:Announcing September 2016 Updates for .NET Core 1.0 by pjmlp on Wednesday September 14, 2016 @10:23AM (#12497111)
Me too.

Websphere is such a pain to use, yet it still is everywhere on enterprise projects.

Re:Announcing September 2016 Updates for .NET Core 1.0 by blinkingled on Wednesday September 14, 2016 @11:33AM (#12497990)
Curious to know why you think WebSphere is a pain - I find it about as good as any complicated piece of software can get - it's reasonably documented, works most of the time and performance is good.
Re:Announcing September 2016 Updates for .NET Core 1.0 by pjmlp on Wednesday September 14, 2016 @11:41AM (#12498083)
I used to know Websphere quite well (all the 5 - 6.x versions) and am happy to have managed to avoid it in the last three years.

It is the typical enterprise software suitable to sell consulting experience in what concerns configuration and management.

Endless list of configuration options, some of them only available via scripting and best of all IBM J9 specific features.

One of the issues we once had around 2006 was that our entity beans stubs would only work properly if compiled via J9.

Re:Announcing September 2016 Updates for .NET Core 1.0 by blinkingled on Thursday September 15, 2016 @08:12AM (#12505395)
Ah older versions. I started extensively working on WebSphere 7.5 onwards - in a course reversal with 8.5 one of our deployment which works fine with Oracle JVM spins the CPU 100% when ws uses J9 and that one ships with broken jconsole and missing jstack that does not want to connect to the spinning process! Joys of enterprise software..
Re:Announcing September 2016 Updates for .NET Core 1.0 by hallojje on Thursday September 15, 2016 @08:59AM (#12505696)
Java don't have async/await, but .NET already has it for years. Lambda expressions for Java were also released many years after C#. I prefer properties in .NET comparing to getter/setter functions in Java. There are other advantages of C#, just check tread about this on stackoverflow.
Re:Announcing September 2016 Updates for .NET Core 1.0 by knocte on Wednesday September 14, 2016 @10:42AM (#12497328)
IIS != .NET
Re:Announcing September 2016 Updates for .NET Core 1.0 by cptskippy on Wednesday September 14, 2016 @11:47AM (#12498142)
Can you elaborate on what makes IIS a nightmare? What version(s) are you referring to? What other HTTP servers are you using as your basis for comparison?
Re:Announcing September 2016 Updates for .NET Core 1.0 by damiencarol on Wednesday September 14, 2016 @09:30AM (#12496634)
See from Java perspective, it's just 20 years too late.
Re:Announcing September 2016 Updates for .NET Core 1.0 by alimbada on Wednesday September 14, 2016 @10:03AM (#12496936)
I see it as 10 years ahead.
[dead]
Re:Announcing September 2016 Updates for .NET Core 1.0 by alimbada on Wednesday September 14, 2016 @11:52AM (#12498201)
What makes you think I was the one that downvoted him? I don't even get to see a downvote button...
Re:Announcing September 2016 Updates for .NET Core 1.0 by arenaninja on Wednesday September 14, 2016 @07:59AM (#12495973)
As an outsider (largely worked with PHP/Java codebases, recently started C#/.NET Core), the naming conventions are awful. I'm still not sure what the differences are between:

* ASP.NET

* .NET MVC

* .NET 4.5

* .NET WCF

* WPF

It's a nebula of names, but I've been ridiculously productive while trying to grasp .NET core. I'm currently trying to make a job to take DB data and dump it on Elasticsearch. It honestly feels like PHP7 with async, it's great

Re:Announcing September 2016 Updates for .NET Core 1.0 by efdee on Wednesday September 14, 2016 @08:06AM (#12496013)
* .NET 4.5 = v4.5 of the .NET framework

* ASP.NET = Web subsystem of the .NET framework.

* ASP.NET MVC = MVC framework that is part of ASP.NET (not ".NET MVC")

* WCF = Communications subsystem of the .NET framework (not ".NET WCF")

* WPF = Presentation layer subsystem of the .NET framework

Re:Announcing September 2016 Updates for .NET Core 1.0 by nathanaldensr on Wednesday September 14, 2016 @09:17AM (#12496523)
It basically comes down to named groupings of assemblies. They are really just marketing terms. I consider the .NET Framework to encompass all .NET assemblies shipped by Microsoft in the System and sometimes Microsoft namespaces. The ones you listed are simply groupings that Microsoft considers important enough to create project templates for, have forums dedicated to each, produce examples for, etc.
Re:Announcing September 2016 Updates for .NET Core 1.0 by romanovcode on Wednesday September 14, 2016 @06:31AM (#12495519)
It's because of Classic ASP stigma attached to it so whenever you tell people you're working with .NET they think about `runat=server` and *.aspx BS.

Even now when I tell some people that .NET is very simple, fast and runs on osx/linux they are like "Really!? No way bla bla."

Re:Announcing September 2016 Updates for .NET Core 1.0 by efdee on Wednesday September 14, 2016 @08:03AM (#12496003)
Nitpicking, but "runat=server" and *.aspx are not "Classic ASP". They are ASP.NET Webforms features. "Classic ASP" is what came before ASP.NET
Re:Announcing September 2016 Updates for .NET Core 1.0 by c17r on Wednesday September 14, 2016 @08:40AM (#12496225)
*.aspx is definitely ASP.NET, but Classic ASP also had runat=server silliness.
Re:Announcing September 2016 Updates for .NET Core 1.0 by efdee on Wednesday September 14, 2016 @10:54AM (#12497496)
You are totally right.
Re:Announcing September 2016 Updates for .NET Core 1.0 by samfisher83 on Wednesday September 14, 2016 @09:19AM (#12496540)
The two features I miss from java:

1. The compiler checks for exceptions being thrown and and makes you write a catch.

2. Anonymous inner classes.I prefer even handlers, but would still like this feature.

I think c# does a good job of always adding features that make it easier to write code.

Re:Announcing September 2016 Updates for .NET Core 1.0 by rusanu on Wednesday September 14, 2016 @10:27AM (#12497154)
Interesting that you miss checked exceptions. Is one of the most criticized feature of the language, see Does Java need Checked Exceptions? [0]. Also in this discussion between Anders Hejlsberg and Bruce Eckel they are discussing why C# did not adopt them: The Trouble with Checked Exceptions [1]. Also Java theory and practice: The exceptions debate [2] discusses the more on the topic.

[0] http://www.mindview.net/Etc/Discussions/CheckedExceptions/

[1] http://www.artima.com/intv/handcuffs.html

[2] https://www.ibm.com/developerworks/library/j-jtp05254/

Re:Announcing September 2016 Updates for .NET Core 1.0 by chrismorgan on Wednesday September 14, 2016 @06:30AM (#12495512)
I’m sad about the name of applyPatches. If it’s something that should never be needed and is a security risk, it should have a dangerous name and/or value. e.g. make it a string value that needs to be exactly "No, even though I know that this is a bad idea and promotes insecurity; I have read http://example.com/ and really need this." to turn off patches.
Re:Announcing September 2016 Updates for .NET Core 1.0 by sremani on Wednesday September 14, 2016 @10:56AM (#12497513)
I am looking F# for CoreCLR status page, https://github.com/Microsoft/visualfsharp/wiki/F%23-for-Core...

Is F# support ready for Prime Time?

Re:Announcing September 2016 Updates for .NET Core 1.0 by enricosada on Wednesday September 14, 2016 @12:17PM (#12498464)
That page is really outdated.

It's a good start, lot of things work, lots doesnt.

Is for early adopters but it's not bleeding edge anymore i think. Not ready for production

F# using .net core sdk from command line works (new, restore, build, run, test, publish) like c#.

xplat is ok where .net core is supported, so osx/ubuntu/win/docker.

Docs need some improvements, but lots are language agnostic, or c# examples help (docs are open source, if someone want to help).

Important wip or not implemented yet feature of compiler/language:

- type providers

- portablepdb for enable debugging

- f# repl

The f# libraries in ecosystem are starting to support .net core (netstandard), like FSharp.Compiler.Services (the compiler as library), Suave ( github.com/SuaveIO/Suave-CoreCLR-sample ), Argu, Fable. These are not hello world examples, so it works. Some are in prerelease, but it's expected because it's a new framework/tooling and need testing.

There are only few libraries of the f# ecosystem who support .net core, but it's expected because is a bootstrapping issue in lot of cases (i need to wait .net core support for my dependencies add support..)

Obv it's possibile to use all others .net libraries who support .net core (netstandard) like the BCL, Kestrel, etc.

As editor, vscode has the best support using usual the amazing Ionide plugin for f# (who already give f# support for .net and mono). Intellisense, build, run is ok but not debugging.

Using Visual studio, only build/run works (xproj and project.json), but not intellisense or debugging.

If you want to chat there are two good f# slack groups

- #dotnetcore in fsharp.org slack (other chan too)

- #fsharp in fpchat.com

Re:Announcing September 2016 Updates for .NET Core 1.0 by snuxoll on Wednesday September 14, 2016 @12:20PM (#12498525)
Not yet, there's been a lot of progress in the past 6 months but unless more people get involved with the port work it's probably going to be another year at least before it's actually usable.
Re:Announcing September 2016 Updates for .NET Core 1.0 by monads on Wednesday September 14, 2016 @08:04AM (#12496008)
It still does not work on Fedora 24 :-(