News for hackers. Stuff that matters.
Re:Modern C++ for C Programmers (2018) by pjmlp on Saturday July 24, 2021 @01:57AM (#27938825)
> For instance, when someone is talking about JSON serialization in C#, you could bet your life that they are referring to one of ~2 specific libraries and sets of methods.

I wouldn't bet on it, https://devblogs.microsoft.com/dotnet/try-the-new-system-tex...

Also try to talk about Java 17 to clueless group of devs still delivering stuff into production with Java 8 in 2021.

Re:Modern C++ for C Programmers (2018) by vips7L on Saturday July 24, 2021 @08:08AM (#27940198)
> Also try to talk about Java 17 to clueless group of devs still delivering stuff into production with Java 8 in 2021.

Id say it’s part cluelessness and it’s part that they just don’t care. They’re comfortable with 8 and don’t want to learn anything new (even if 8 is a slower runtime).

I fear that the community will never move on past 8.

Re:Modern C++ for C Programmers (2018) by pjmlp on Saturday July 24, 2021 @08:25AM (#27940306)
You could say the same of people refusing to move beyond C89, Python 2, Perl 5,..... and that is the whole point of perceived complexity and current features of those languages in 2021.
Re:Modern C++ for C Programmers (2018) by bob1029 on Saturday July 24, 2021 @09:07AM (#27940596)
> I wouldn't bet on it, https://devblogs.microsoft.com/dotnet/try-the-new-system-tex...

This would be the 2nd of 2 that I was referring to. The first would be Newtonsoft.Json.

Re:Modern C++ for C Programmers (2018) by pjmlp on Saturday July 24, 2021 @09:14AM (#27940666)
Except this is a new API, not the 2nd one.

You have to modify code using System.Text.Json for the code generator based way, and it doesn't support all the features, enjoy the comments section.

Re:Modern C++ for C Programmers (2018) by bob1029 on Saturday July 24, 2021 @11:12AM (#27941591)
> Except this is a new API, not the 2nd one.

> and it doesn't support all the features

I think there was a misunderstanding.

We do not use System.Text.Json because it doesnt support everything Newtonsoft.Json does. At no point did I intend to make the claim that these were somehow compatible implementations.

Our shop is stuck on Newtonsoft until Microsoft realizes that polymorphic deserialization is actually a really useful thing and not just a pedantic security concern.