News for hackers. Stuff that matters.
Re:What Makes .NET Core So Special? by SimonPStevens on Friday November 09, 2018 @09:42AM (#18414668)
I want to like .Net Core, I really do. But in my opinion its just not yet ready for serious use.

An example. If you want to use .Net Core you can't use entity framework, you have to use EF Core, which doesn't yet support mapping to views or stored procs, only tables.

Now you might think that's fine, maybe you only want to map to tables. But it's the same story all over the ecosystem. Many major projects have a separate netfx and core package, and many times the core package has restricted functionality. You will almost certainly find a whole host of things you need are missing.

And then you get the fact that ASP.Net Core is dropping support for .Netfx in the next release, so if you want to use ASP.net Core you are now limited to EF core too, which means you are making a full jump and can't just go halfway first. And .netfx is now not going to support .net standard 2.1.

The list of incompatibilities and restrictions just goes on and on. I certainly can't keep the full list in my head. So right now I'm not really willing to commit to a new project of any significance on .net core because I know there will be dozens of missing dependencies or features.

You could argue this is just want it's like at the cutting edge, and the gaps will be filled in time. But .netfx is clearly already going into maintenance mode, so the push to move to .net core has already started.

Re:What Makes .NET Core So Special? by ajryan on Friday November 09, 2018 @10:19AM (#18415001)
We use .NET core in production and are very happy. A mixture of EF Core (for ad-hoc queries) and Dapper (for stored procs) works just fine. Also, new in EF Core 2.1, you can map views and stored procs just fine: https://docs.microsoft.com/en-us/ef/core/modeling/query-type....

That's your only specific example - what other functionality are you missing?

You're not willing to commit to .NET core but you admit that NetFx is going into maintenance mode?

Re:What Makes .NET Core So Special? by wolfspider on Friday November 09, 2018 @11:08AM (#18415427)
Yes, totally agree- I worked on a project that wasn't Core but regular MVC + EF and Dapper which surprisingly worked out well. Actually so well I started mentioning it as a feature but really was just too lazy to redo all the dapper stuff since it worked so well.
Re:What Makes .NET Core So Special? by thepp1983 on Friday November 09, 2018 @12:49PM (#18416311)
Because it is cross platform and isn't really used cross platform it is a pain in the arse.

SQL Aliases don't work. So people have to put in registry hacks into C# code (YAY back to 2002).

Loads of missing functionality (e.g. GeneratePassword is missing in aspnet core).

It is just incomplete. .NET 1.0 was more together than ASP.NET core and that was in 2002.

We've lost loads of functionality in the spurious benefit of it running on multiple platforms. I was developing ASP.NET on Linux 5 years ago.

It is more churn and burn for the small amount of devs that use dotnet without Windows.

Re:What Makes .NET Core So Special? by davedx on Friday November 09, 2018 @10:39AM (#18415163)
I'm working on a fairly complex e-commerce platform built on .Net Core, I'm really happy with it. We use EF core too.

It's a pretty serious project, and for us, the benefits of our developers being able to natively develop on Macbooks and being able to deploy to Linux containers outweighs missing features.

Swings and roundabouts...

Re:What Makes .NET Core So Special? by elorant on Friday November 09, 2018 @02:03PM (#18416947)
Which IDE are you guys using?
Re:What Makes .NET Core So Special? by davedx on Sunday November 11, 2018 @03:15AM (#18425441)
The Windows guys are using VS Professional, I'm mostly using VS Community, though I've dabbled with Rider a bit. If I was starting out with zero VS experience I'd probably go for Rider, but I'm so used to VS I use that, even though Community isn't as good as Professional.
Re:What Makes .NET Core So Special? by gameswithgo on Friday November 09, 2018 @10:26AM (#18415059)
Maybe you will find that rolling a little of your own code instead of depending on libraries as much is less hard than you imagined and has some nice benefits?

EF isn't a necessity, many shops prefer not to use it at all.

Core is the future so if one wants to keep using .NET at all they should find a way or switch to something else.

Re:What Makes .NET Core So Special? by TylerH on Friday November 09, 2018 @10:47AM (#18415239)
.NET Core is the future just like moving on from COBOL and FORTRAN was the move 30+ years ago, eh?
Re:What Makes .NET Core So Special? by zvrba on Friday November 09, 2018 @10:45AM (#18415219)
> you have to use EF Core, which doesn't yet support mapping to views or stored procs, only tables.

At least this one is not true: https://docs.microsoft.com/en-us/ef/core/modeling/query-type...

Re:What Makes .NET Core So Special? by eksemplar on Friday November 09, 2018 @02:33PM (#18417177)
We've been a .net house for a decade, but we're moving away from .net and Core is a large part of it.

Everything is so low level and so unproductive it's silly, and the only redeeming features was how well it integrated into the windows setting. But now with 3.0 they're removing every non-core library, meaning, it's really not a good choice.

I'm sure it's fast, but if it takes longer to build and deploy, then it really doesn't matter to me. We can buy more iron a lot cheaper than we can buy more development hours after all.

And I agree that it's not ready, I wanted to do a quick hobby thing on my Mac, and despite the development environment working well with VSC (as good as regular visual studio really) it's just terrible to run. .net watch breaks on Mojave, and despite issues on the GitHub there isn't a real fix in sight.

Needing to reboot every-time you stop your development server for it to free the .net resource correctly is just silly.

And that's not to speak on entity. If you've ever tried Django and migrations you'll probably never work with entity again and not hate it. In face, entity is unproductive we've stuck with LinqToSql for a long while, yes I know it's slower, but who cares if I save enough development hours to pay for a thousand years of server time?

Re:What Makes .NET Core So Special? by heywot on Friday November 09, 2018 @11:21AM (#18415531)
We utilize EF Core on a fairly large project and have had zero issues mapping to views. I doubt there are issues at this point with SPs either though I haven't personally done that.

EF Core has a lot of work that needs to be done (and features brought over) but for a lot of use cases, it works just dandy. I don't disagree with your comments about incompatibilities and restrictions - just wanted to set the record straight.

Re:What Makes .NET Core So Special? by polskibus on Friday November 09, 2018 @11:22AM (#18415535)
EF will be available in netcore 3.
Re:What Makes .NET Core So Special? by pjmlp on Friday November 09, 2018 @03:28PM (#18417680)
The word you are missing is partially.

It is still not clear if the design tooling will be migrated and DB drivers also need to run on .NET Core.

Re:What Makes .NET Core So Special? by sblom on Friday November 09, 2018 @12:36PM (#18416204)
Isn't that (EF6, I mean) only on Windows, though?
Re:What Makes .NET Core So Special? by nobody271 on Friday November 09, 2018 @01:32PM (#18416669)
You said it better (and nicer) than I could have. You can extend this to .NET Standard. I mean, I love .NET. You can have Rust and functional programming and whatever else. .NET gets the job done pretty much all of the time for me. But when you reach for simple file system access or System.Drawing and they aren't available it makes you wonder how they are on version 2. That's pre-alpha if you ask me.

Again, I think C# is a great language. I just feel a bit decieved about what .NET Core and .NET Standard are capable of. If the version number matched the capability I would probably be excited.

Re:What Makes .NET Core So Special? by madeuptempacct on Friday November 09, 2018 @11:07AM (#18415412)
Funny, I tried .NET Core with EF at a Hackathon and thought EF really went a long way. Had no idea about the restrictions, thanks for the heads up.

Btw, we use .NET core in prod, but we have weird DB access through a third party API, so I didn't need to think about data mapping.

Re:What Makes .NET Core So Special? by stillbourne on Friday November 09, 2018 @07:21PM (#18419137)
I don't think I can express exactly how wrong you are.