Live data from Hacker News

What Makes .NET Core So Special?

blog.jamesmichaelhickey.com

101–110 of 247 posts

Re: What Makes .NET Core So Special?

#101
post #89

Earlier quoted context omitted.

> I really hope the platform can break out of the Microsoft silo and attract talent from other dev communities The problem is often trust. Like so many Microsoft projects, to me the goal of .Net Core seems to be to get as much people as possible on to a proprietary language and/or get as many devs as possible onto developing stuff that doesn't hurt Microsoft. There's no guarantee that MS will not pull the plug at som…

Microsoft just recently commited them selfs more to .Net Core and it looks like it will replace .Net Framework in a not to distant future https://github.com/aspnet/AspNetCore/issues/3753

Yes, .Net Framework itself will evolve very slow. New features will be added to .Net Core Only.

Re: What Makes .NET Core So Special?

#102
post #15

The post only mentions .NET Core, but should actually be mostly talking about ASP.NET Core that runs on top of .NET Core. The features such as dependency injection and Razor Pages are ASP.NET Core specific. Microsoft have announced that they will be porting WinForms and WPF over to .NET Core so that they no longer need the heavyweight .NET Framework. However, this DOES NOT make WinForms/WPF cross-platform. They will…

Microsoft.Extensions.DependencyInjection is developed as a ASP.NET Core extension but has no dependency on it. https://www.nuget.org/packages/Microsoft.Extensions.Dependen...

Indeed. It's possible and quite easy to use it in a console app for example

Re: What Makes .NET Core So Special?

#103
post #76
post #35

Earlier quoted context omitted.

Yes, you can. If you don't need anything fancy (in that case you are better off with autofac), then you can just add the nuget to your console app and start using it with a few lines of code.

to be fair autofac is not really needed in most projects. you can even write a bunch of lines that will automatically register all your controller dependencies. (of course autofac makes this more simple). but I actually prefer explicit registration (i had the implicit variant on guice and as soon as the project was big, implicit is a mess).

There's also Scrutor (https://github.com/khellang/Scrutor) which makes assembly scanning and registering dependencies really easy too

Re: What Makes .NET Core So Special?

#104
post #80

Besides Node.js the main competitor is is Java/JVM. C# is a bit nicer than Java, but you can use Kotlin or Scala on the JVM. All in all I see no real advantage over the JVM/Java world - more of the other way around, since the .Net ecoystem is not as big as the JVM ecosystem. However competition is always good.

It depends on how much better you think C# is but I think of this the other way around. You don't have to use Java anymore to get cross platform support, good performance and a stable and statically typed language.

Regarding things that might be better I think the linq support in dotnets collections is better than the streams support in java since java has kept more old collection libraries.

Re: What Makes .NET Core So Special?

#105
I would say not being actually free and open source is a show stopper but I'm glad there's finally some progress. https://github.com/dotnet/source-build/issues/782

I don't get it. They rewrite the whole think from scratch and there's still code they can't show the source for... I have a feeling there is still push back inside Microsoft against Scott Guttrie and the open everything crowd.

Re: What Makes .NET Core So Special?

#106
post #63
post #54

Earlier quoted context omitted.

Live unit testing is great, assuming your company pay for the Enterprise edition which is the only one which has it. (Mine doesn't).

Resharper has it for a fraction of the price.

I really like ReSharper, and I've bought it for my team, but it often makes VS crawl like the PC was a budget model from 2000. They must address this sooner or later.

Re: What Makes .NET Core So Special?

#107
post #85

Earlier quoted context omitted.

I'd be surprised if many organisations pay the full price for Visual Studio Enterprise - certainly a former employer of mine (a pretty large company) didn't pay anything like the list price for any of the MS development tools.

Let's say they get it at an 80% discount. VS Enterprise apparently is now available only though a cloud subscription worth ~$3000 per year so it would still be ~$600. Resharper is $299/$239/$179 (1st/2nd/3rd year). And this is a scenario where your company can get an 80% discount (not sure this is doable) plus Resharper has a perpetual license you can keep after 1 year, just without updates.

It was a big multinational - that kind of money was literally a rounding error.

Re: What Makes .NET Core So Special?

#108
post #2

this seems odd. The main advantage other than going faster than Node ( which you'd expect ) is that it's cross platform and can run in containers and has libraries.....like MOST other languages. Not knocking .NET Core, I use it a lot... but this just doesn't seem like it tells you what's special about it

I agree, they can do a better job articulating what is “awesome”. For me personally, there are 3 main reasons that I have been super excited about .Net core: 1. It is C#, in my opinion the best statically typed language. The easiest way I have described it to other folks is it is Java++. Combine it with really good intelligence, and it is like the code “flows out of you”. Part of the reason for that is the effort put…

For someone who is not well versed in MS world, what is the C# equivalent of the Java Streams API?

Re: What Makes .NET Core So Special?

#109
post #80

Besides Node.js the main competitor is is Java/JVM. C# is a bit nicer than Java, but you can use Kotlin or Scala on the JVM. All in all I see no real advantage over the JVM/Java world - more of the other way around, since the .Net ecoystem is not as big as the JVM ecosystem. However competition is always good.

I've worked a lot with both C# and Java, and C# is so superior I never want to touch Java again. Especially since around C# 3.5, the distance between Java and C# has grown enormous. The two benefits I can see with Java is that it's a smaller language (easier to train junior engineers), and yes, the huge amounts of libraries.

Kotlin/Scala/Clojure are nice, but my experience is that just because an organization is working with Java, you shouldn't count on being able to work with some other JVM language. At my current job, we've been forced to give up on Clojure (a language I love) because the higher-ups have decided we should stick to Java.

I really hope especially Kotlin will gain more traction in the coming years, but in the meanwhile there is at least an order of magnitude more jobs in C# (where I live).

Re: What Makes .NET Core So Special?

#110

I’m in the process of porting a bunch of go code to dotnet core 2.1 on AWS lambda. I’m on a Mac using vscode. I never installed mono, just the dotnet sdk. Honestly, I’ve been amazed at how good the tools have been. For cli and serverless dev, it’s been surprisingly great. It’s fast. C# is decent. The cold starts are not as fast as go, but not terrible. Memory usage is low. It’s been a legitimately positive experience…

I'm complete new to C# and Java but I'm looking into them to choose a new language to learn. I'm mostly worried about memory consumption since I often use a cheap $5 VPS. Would you happen to know which one would be a better fit for my use case? Thank you.
Post reply on HN