News for hackers. Stuff that matters.
Re:Deep Dive Into C# 9 by NicoJuicy on Friday December 06, 2019 @05:43AM (#21720629)
You don't have to, asp.net mvc still works. WPF, ..

I think the big changes between .net framework and . Net Core weren't that big for a project.

And it got a lot faster.

Re:Deep Dive Into C# 9 by dustinmoris on Friday December 06, 2019 @05:51AM (#21720664)
I'm not talking about the changes between .NET and .NET Core. As far as I'm concerned .NET doesn't exist to me anymore and it's not even worth talking about.

I am angry that .NET Core keeps changing faster than Kim Kardashian changes her outfits. First they focused on making .NET Core all about ASP.NET with a clear focus on MVC and making everything super granular. Then they didn't like how granular it was and started to put lots of featurs into smaller pacakges again. Then they keep re-inventing things. First introduce Newtonsoft Json into the default .NET Core stack. Then rewrite everything. The webhost model keeps constnantly changing. The ASP.NET Core team now is realising that people hate MVC and they are splitting out more features from MVC into more basic ASP.NET Core features, which is why routing has completely changed again with endpoint routing. Honestly nothing is constant, not even for 6 months. Every version of .NET Core almost requires a developer to completely rewrite their Startup.cs class. It's just ridiculous.

The reason for all of this is old MSFT thinking. It's not bloody rocket science, people have been saying it for years that they don't want to be forced into MVC, they want things to be more lightweight, bla bla bla. But obviously MSFT cares more about making a shit hello world demo at BUILD and therefore they first must hack together ASP.NET Core which was mostly just about MVC before being allowed to build the core platform to something that is actually useful to others.

They'll constantly keep changing the fundamentals, moving the carpet under developers feet and distracting businesses with stupid useless excercises or rewriting shit instead of just creating a stable base platform on which people can freely build applications and actually focus on their own apps.

Re:Deep Dive Into C# 9 by huzaif on Friday December 06, 2019 @09:10AM (#21721851)
I will try to attempt to address some of your concerns...

"First they focused on making .NET Core all about ASP.NET with a clear focus on MVC and making everything super granular. Then they didn't like how granular it was and started to put lots of featurs into smaller pacakges again."

.Net core was a ground-up re-write and was the vehicle used to opensource all .Net. It was always meant to grow into a full-scale offering and eventually bring along all the features users demanded. I personally love reading all the fun library code: https://github.com/dotnet/runtime/tree/master/src/libraries

" First introduce Newtonsoft Json into the default .NET Core stack. Then rewrite everything."

Newtonsoft itself is bloated and there is no turning back for that library. MS is providing an option to use a lightweight JSON library that uses the new SPAN ref struct.

"The ASP.NET Core team now is realising that people hate MVC and they are splitting out more features from MVC into more basic ASP.NET Core features, which is why routing has completely changed again with endpoint routing."

Endpoint mapping wasn't born out of hate for MVC, it facilitates the separation of framework/transport/protocol without introducing config files (or handler code) for each. https://github.com/aspnet/AspNetCore/issues/4772

"The reason for all of this is old MSFT thinking. It's not bloody rocket science, people have been saying it for years that they don't want to be forced into MVC, they want things to be more lightweight, bla bla bla."

Maybe I am old but I remember when MS was almost forced to adopt MVC. They kept webforms alive for a long time. They introduced razor pages when SPA world demanded an easier solution. I am not sure if there was going to be a way to satisfy everyone here.

Re:Deep Dive Into C# 9 by NicoJuicy on Thursday December 12, 2019 @05:56PM (#21777527)
> The webhost model keeps constnantly changing.

The name changed and there is an obsolete attribute on it with instructions.

> First introduce Newtonsoft Json into the default .NET Core stack.

With the same usage/properties/methods but faster

> routing has completely changed

Another method, the older one is still available ( also, obsolete attribute)

> completely rewrite their Startup.cs class

Wait what? You already named 2 of the 3 changes and there is probably a year in between. Also, the third change is related to the webhost change.

Kim changes every day

Re:Deep Dive Into C# 9 by Roonerelli on Friday December 06, 2019 @06:19AM (#21720793)
that is quite a rant for someone who feels its not even worth talking about
Re:Deep Dive Into C# 9 by Nelkins on Friday December 06, 2019 @07:50AM (#21721319)
I think he meant specifically .NET framework, the older .NET runtime.
Re:Deep Dive Into C# 9 by jolux on Friday December 06, 2019 @07:53AM (#21721340)
Newtonsoft.Json was the default JSON parser in ASP.NET Core for a bit, but that’s changed with .NET Core 3’s System.Text.Json. Newtonsoft was never tied to .NET Core itself directly.
Re:Deep Dive Into C# 9 by NicoJuicy on Sunday December 08, 2019 @10:02AM (#21736180)
Then you are lucky, they mentioned .net core 3.1 with Enterprise support.

That means you don't have to update for a very long time ;)

Re:Deep Dive Into C# 9 by Stubb on Friday December 06, 2019 @09:06AM (#21721817)
What platform do you like for development?
Re:Deep Dive Into C# 9 by pjmlp on Friday December 06, 2019 @05:46AM (#21720641)
There are quite a few re-writes required for .NET Core migrations, hence why many enterprises are holding on to .NET Framework.
Re:Deep Dive Into C# 9 by arethuza on Friday December 06, 2019 @05:53AM (#21720670)
Doesn't that happen with any toolset though - when I used Java (a long time ago) I remember a lot of similar complaints when new version were introduced. And look at the fuss around Python 2 and 3.

Are there any popular application programming platforms that are widely used that haven't evolved fairly rapidly and caused a lot of complaints along the way?

Re:Deep Dive Into C# 9 by hvidgaard on Friday December 06, 2019 @07:23AM (#21721153)
All of this happened within less than 2 years to the point where you had to do extensive rewriting for just starting your old code. Python 2 was mostly stable 8 years, and you could continue to run Python 2. Java as far as I know (it's not a stack I regularly work in) rarely require rewrite because a new version comes out.
Re:Deep Dive Into C# 9 by Clubber on Friday December 06, 2019 @08:18AM (#21721498)
I suspect it's because it's new and they are still flushing out how they want the overall framework to "feel." In my experience, this is more the norm than the anomaly. IIRC, Delphi would create breaking changes nearly every release.

It's two philosophies: 1. Backwards compatibility is king, 2. The best framework possible is king. #1, over time, can lead to a hot mess.

Re:Deep Dive Into C# 9 by scarface74 on Friday December 06, 2019 @07:51AM (#21721327)
That’s true for anything. There are still VB6 maintenance jobs popping up every now and then.
Re:Deep Dive Into C# 9 by pjmlp on Friday December 06, 2019 @08:05AM (#21721420)
Indeed, hence why it is a fallacy to think everyone is running to deliver .NET Core applications.

I am yet to get a RFP that even mentions it.

Re:Deep Dive Into C# 9 by scarface74 on Friday December 06, 2019 @08:12AM (#21721458)
Well how much does your anecdotal experience really say about the broad adoption of .Net Core?

I know a lot of companies that really want to run away from a dependency on Windows - especially in cloud environments. Every time you introduce Windows into the mix it costs more for licenses and resources.

This is coming from someone who has exclusively developed and deployed to Windows servers until 2 years ago and even now my only Linux deployments are Lambda and Docker.

Re:Deep Dive Into C# 9 by pjmlp on Friday December 06, 2019 @08:30AM (#21721572)
Those RFP are coming from either DAX or Fortune 500 companies, none of them eager to rewrite WCF into gRPC, rewrite EF 6 stuff with unavailable features on Core, buy new licenses for 3rd party dependencies or buy replacements with the respective rewrite and so on.
Re:Deep Dive Into C# 9 by scarface74 on Friday December 06, 2019 @08:42AM (#21721653)
And again your anecdotal experiences doesn’t say much about the broader market. I see plenty of “Fortune 500” companies trying to find a migration path from .Net Framework and Windows. Heck even MS is abandoning .Net Framework.
Re:Deep Dive Into C# 9 by pjmlp on Friday December 06, 2019 @08:57AM (#21721754)
My anecdotal experiences are as good as yours.

Better pay attention to MS conferences then, they have stressed multiple times that VS is going to stay .NET Framework and how they are commited to keep it as long as there is Windows.

And at .NET Core 3.0 release conference it was visible in multiple occasions how they are fighting the re-writing fatige from many enterprises.

Re:Deep Dive Into C# 9 by scarface74 on Friday December 06, 2019 @09:01AM (#21721786)
They’ve also said that .Net Framework is in maintenance mode and won’t get any new features. Does that sound like a carriage you want to tie your horse to?

I think JetBrains knows a little about the .Net ecosystem.

https://www.jetbrains.com/lp/devecosystem-2019/csharp/

As far as cloud and server adoption.

https://www.makeuseof.com/tag/linux-market-share/

On Amazon EC2, standard Linux (along with its various distros) controls 92 percent of the market. It boasts more than 350,000 individual instances. Again, Windows is responsible for the other eight percent.

Even MS said that 2/3 of their VMs on Azure are running Linux.

Re:Deep Dive Into C# 9 by pjmlp on Friday December 06, 2019 @09:31AM (#21722028)
Our DAX and Fortune 500 customers decide where to tide the hourses, we just follow along.

Those VMs running Linux is where we put our Java stuff not .NET.

Re:Deep Dive Into C# 9 by scarface74 on Friday December 06, 2019 @09:56AM (#21722250)
So now that I’ve shown you non anecdotal evidence of the adoption rate of .Net Core, you’re going back to what you see in your one company?
Re:Deep Dive Into C# 9 by pjmlp on Friday December 06, 2019 @10:32AM (#21722620)
JetBrains? It is the sample of the anecdotes of their user base.

Just like my anecdotes are the sample of our DAX and Fortune 500 customers.

Linux adoption? Yes it is wiping Windows on the server, that is why I always worked for Java/.NET shops since 2006, switching stacks as per customer project requirements, in some projects even both get equally used.

Somehow your replies always feel being about fear of using outdated tech, always having to jump into new toys to keep being employable.

Never felt the need to worry about that, as long as we have happy customers, opportunities abound, regardless of what is the latest tech stack fashion.

Re:Deep Dive Into C# 9 by scarface74 on Friday December 06, 2019 @11:10AM (#21723043)
Resharper is quite a popular plug in for C#.

I think JetBrains sample size is a lot larger than yours.

.Net Core isn’t “new”. It’s been around since 2016 and the direction that Microsoft is headed in.

never felt the need to worry about that, as long as we have happy customers, opportunities abound, regardless of what is the latest tech stack fashion.

And what happens when either you want to or are forced to change jobs? Someone who is 40+ will be seen as just another old head who hasn’t kept up with technology and be on HN screaming about “ageism”. Not directed at you personally. I’m also in my mid 40s and seen it happen time and time again. Someone staying at a job for 20 years and then gets laid off and all they have to offer is that they are really good at ASP.Net WebForms when the world has moved on.

Heck it happen to me at 35 looking for a job and my experience after staying with a company for 10 years was VB6 and C++/MFC.

Instead of moving on to technologies that are in the “slope of enlightenment” phase of the hype cycle would you suggest that I kept doing C on DEC and Stratus mainframes like I did on my first job?

The average tenure of a developer in the US is 3-4 years.

Re:Deep Dive Into C# 9 by pjmlp on Friday December 06, 2019 @01:36PM (#21724700)
> .Net Core isn’t “new”. It’s been around since 2016 and the direction that Microsoft is headed in.

And yet most of those RFP keep referring to stuff like .NET Framework 4.6 and .NET 4.7.1.

As for the job, luckily Europe is not as bad as US in what concerns ageism.

Over 40 here as well and so far no problems switching jobs, because I always strived not to be labelled as only being good at technology X, without anything else to offer.

My advice is to diversify domain knowledge, master soft skills, be able to jump between developer, QA and technical lead roles across delivery sprints, and most customers will find less relevant how well one masters the very latest version of technology X, rather what is the business value one brings to the organization.

And some of them, do value a lot that one is able to keep that old clunky VB 6 application running, instead of sinking several thousand euros attempting an half-baked rewrite into the latest stack trend, and do pay accordingly as well.

Re:Deep Dive Into C# 9 by scarface74 on Friday December 06, 2019 @01:50PM (#21724816)
And yet most of those RFP keep referring to stuff like .NET Framework 4.6 and .NET 4.7.1.

And yet again you use your own anecdotal evidence without any large sample size.....

As for the job, luckily Europe is not as bad as US in what concerns ageism.

So how competitive is someone all other things being equal who hasn’t kept up with technology as someone who has?

And some of them, do value a lot that one is able to keep that old clunky VB 6 application running, instead of sinking several thousand euros attempting an half-baked rewrite into the latest stack trend, and do pay accordingly as well.

Until Microsoft introduces an operating system that doesn’t support it and you’re stuck with an unsupported OS with an unsupported runtime with security and compliance concerns.

Re:Deep Dive Into C# 9 by pjmlp on Friday December 06, 2019 @03:22PM (#21725603)
Competitive enough not to worry about being unemployed.

If they get the job of their dreams, it is a completely different matter though.